angular/vscode-ng-language-service/syntaxes/test/data/let-declaration.html
Joey Perrott 863c7eaafe build: migrate vscode extension into repo (#63924)
Migrate the vscode extension for angular into this repository.

PR Close #63924
2025-09-24 20:24:32 +00:00

31 lines
624 B
HTML

@let basicLet = 123 + 456;
@let noSpaceAfterEquals =true;
@let noSpaceBeforeEquals= true;
@let noSpaceAroundEquals=true;
@let lotOfSpaceAroundEquals = true;
@let #invalid = true;
@let invalidIn#TheMiddle = true;
@letinvalid = true;
@let stringContainingSemicolon = 'hello ;' + 'world';
@let complexExpression = something ? 123 : {prop: 'hello' + true + 'world'};
@let usingPipes = 123 + foo | async | multiply: 2 | separator: ';';
@if (someExpr | async) {
@let inBlock = true;
@for (foo of bar; track foo) {
@let inNestedBlock = 123;
}
}
@let noEquals
@let noValue =