-
-
Notifications
You must be signed in to change notification settings - Fork 913
Open
Labels
L-HTMLLanguage: HTML and super languagesLanguage: HTML and super languagesS-FeatureStatus: new feature to implementStatus: new feature to implement
Description
Description
Special HTML Syntax
Attributes
- Property binding
[property]="" - Event binding
(click)="" - Two-way binding
[(property)]="" - Template ref
#myFragment - Structural directive
*select=""
Template
- Text interpolation
{{ variable }} - Pipes
{{ variable | uppercase }}
Control flow
- defer
@defer@placeholder@loading@error - for
@for ()@empty - if-else
@if ()@else if ()@else - Variable
@let - Switch
@switch ()@case ()@default
Embedding
Angular allows html in typescript files, using the following syntax:
@Component({
template: `
<p>Your color preference is {{ theme }}.</p>
`,
...
})
export class App {
theme = 'dark';
}
Want to contribute? Let us know you are interested! We will assign you to the issue to prevent several people to work on the same issue. Don't worry, we can unassign you later if you are no longer interested in the issue! Read our contributing guide and analyzer contributing guide.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
L-HTMLLanguage: HTML and super languagesLanguage: HTML and super languagesS-FeatureStatus: new feature to implementStatus: new feature to implement