Question from the Angular 4 (legacy) test

The *p* tag will not appear in the DOM.

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 466 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!