This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let text = ` | |
CREATE TABLE [dbo].[images] | |
( | |
[image_id] INT NOT NULL PRIMARY KEY, | |
[url] VARCHAR(200) NOT NULL, | |
[tour_id] INT NULL, | |
[user_id] INT NULL, | |
[created_on] DATETIME2(1) NULL DEFAULT GETDATE(), | |
CONSTRAINT [CK_images_tour_id] CHECK (tour_id is not null or user_id is not null), | |
CONSTRAINT [FK_images_users] FOREIGN KEY ([user_id]) REFERENCES [users]([user_id]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Directive, ElementRef, Input, HostListener} from '@angular/core'; | |
import { NgControl, ValidationErrors } from '@angular/forms'; | |
/* | |
* Directive to format zip codes on FormControl | |
*/ | |
@Directive({ | |
selector: '[zipCode]' | |
}) |
NewerOlder