Expert
In the following template:
<p [hidden]="isHidden" *ngIf="isReady">{{test}}</p>
And its linked component:
import {Component, OnInit} from '@angular/core';
@Component({
selector: ‘test-template',
templateUrl: 'test-template.html'
})
export class TestTemplateComponent implements ngOnInit {
ngOnInit() {
this.isHidden = false;
this.isReady = false;
}
}
What is the true statement about this code?
Author: Mathieu RobinStatus: PublishedQuestion passed 506 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!
1
How to get the parent element of a child element in AngularJS0
Create a new AngularJS project1
Write a unit test for the DataService in AngularJS1
What are directives in AngularJS?1
What are the lifecycle hooks in AngularJS?1
What is AOT in AngularJS ?,AOT is better than JIT for production ;1
AngularJS: How to fix the error 'Cannot assign to 'bar' because it is a constant or a read-only property.'