fix(compiler_cli): allow to use builtin directives like NgIf, …
Related to #8448 Closes #8454
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import {Component, Inject} from '@angular/core';
|
||||
import {FORM_DIRECTIVES} from '@angular/common';
|
||||
import {FORM_DIRECTIVES, NgIf} from '@angular/common';
|
||||
import {MyComp} from './a/multiple_components';
|
||||
|
||||
@Component({
|
||||
@@ -7,9 +7,10 @@ import {MyComp} from './a/multiple_components';
|
||||
templateUrl: './basic.html',
|
||||
styles: ['.red { color: red }'],
|
||||
styleUrls: ['./basic.css'],
|
||||
directives: [MyComp, FORM_DIRECTIVES]
|
||||
directives: [MyComp, FORM_DIRECTIVES, NgIf]
|
||||
})
|
||||
export class Basic {
|
||||
ctxProp: string;
|
||||
constructor() { this.ctxProp = 'initiaValue'; }
|
||||
ctxBool: boolean;
|
||||
constructor() { this.ctxProp = 'initialValue'; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user