Created
November 25, 2018 08:28
-
-
Save NishuGoel/86eb868afa26583863d6ceb73f0fc4bd to your computer and use it in GitHub Desktop.
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
@Component({ | |
selector: 'app-root', | |
template: `<h2>Welcome</h2> | |
<p *ngIf="show">Show</p> | |
<ul> | |
<li *ngFor = "let item of items">{{item}}</li> | |
</ul> | |
` | |
}) | |
export class Component{ | |
public show = true; | |
public item = 'pencil'; | |
public items =['eraser', 'sharpener', 'pen', 'pencil', 'geometry']; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment