Skip to content

Instantly share code, notes, and snippets.

@NishuGoel
Created November 25, 2018 08:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NishuGoel/86eb868afa26583863d6ceb73f0fc4bd to your computer and use it in GitHub Desktop.
Save NishuGoel/86eb868afa26583863d6ceb73f0fc4bd to your computer and use it in GitHub Desktop.
@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