Skip to content

πŸ“Ž Angular HTML-ish supportΒ #9513

@Netail

Description

@Netail

Description

Special HTML Syntax

Attributes

Template

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    L-HTMLLanguage: HTML and super languagesS-FeatureStatus: new feature to implement

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions