
A New Syntax for Angular Templates

Angular Templates & Time To First Commit
Tired of Importing Modules
Which Module Should I Import Again?
<form [formGroup]="sandwichForm">
Can’t bind to ‘formGroup’ since it isn’t a known property of ‘form’
ReactiveFormsModule
Ng VDom
export class AppComponent extends Renderable {
render() {
return (
<h1>Hello World!</h1>
)
}
}
A New Way of Writing Templates
@Component({
selector: 'mc-greetings',
template: `<h1>Hi {{ name }}</h1>`
})
export class Greetings {
@Input() name: string;
}
@Component({
selector: 'mc-app',
template: ngMarkup`
<${Greetings} name="foo"></${Greetings}>
<${Greetings} name="john"></${Greetings}>
`
})
export class AppComponent {}
What’s Next?
Surviving AOT
ngtsc
Getting rid of explicit ngModule
declarations & exports
ngModule
AppModule
ngMarkup
deps