This file contains hidden or 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
<app-first-child *ngFor ="let thisEntry of firstFormEntry" | |
[formEntry]="thisEntry"></app-first-child> |
This file contains hidden or 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
<app-first-child [formEntry]="firstFormEntry[0]"></app-first-child> |
This file contains hidden or 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 { | |
Component | |
} from '@angular/core'; | |
@Component({ | |
selector: 'displaying-entries', | |
templateUrl: './display-entries.component.html', | |
styleUrls: ['./display-entries.component.css'] | |
}) | |
export class DisplayEntries { |
This file contains hidden or 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 { BrowserModule } from '@angular/platform-browser'; | |
import { NgModule } from '@angular/core'; | |
import { AppComponent } from './app.component'; | |
import { MyFirstComponent } from './my-first.component'; | |
import { DisplayEntries } from './display-entries.component'; | |
@NgModule({ | |
declarations: [ | |
AppComponent, |
This file contains hidden or 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 { Component } from '@angular/core'; | |
@Component({ | |
selector: 'app-root', | |
templateUrl: './app.component.html', | |
styleUrls: ['./app.component.css'] | |
}) | |
export class AppComponent { | |
} |
This file contains hidden or 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
<displaying-entries></displaying-entries> |
This file contains hidden or 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
<app-first-child [formEntry]="firstFormEntry"></app-first-child> |
This file contains hidden or 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 { Component} from '@angular/core'; | |
@Component({ | |
selector: 'displaying-entries', | |
templateUrl: './display-entries.component.html', | |
styleUrls: ['./display-entries.component.css'] | |
}) | |
export class DisplayEntries { | |
firstFormEntry = { | |
id: 1, |
This file contains hidden or 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 { Component } from '@angular/core'; | |
@Component({ | |
selector: 'app-root', | |
templateUrl: './app.component.html', | |
styleUrls: ['./app.component.css'] | |
}) | |
export class AppComponent { | |
firstFormEntry = { | |
id: 1, |
This file contains hidden or 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
<p *ngIf="formEntry.name">The name is {{formEntry.name}} </p> | |
<p *ngIf="formEntry.address">The address is {{formEntry.address}} </p> | |
<ng-template [ngIf] = "formEntry.phone"> | |
<p>The phone number is</p> | |
<p> {{formEntry.phone}} </p> | |
</ng-template> |