Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 07cfcee

Browse files
committed
JS: TRAP test for angular templates
1 parent 3c08671 commit 07cfcee

3 files changed

Lines changed: 679 additions & 0 deletions

File tree

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { Component } from "@angular/core";
2+
3+
@Component({
4+
template: `
5+
<foo [prop]="expr + expr"/>
6+
<foo [baz]="expr!" />
7+
<foo [baz]="expr?.bar" />
8+
`
9+
})
10+
export class MyComponent {}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"experimental": true
3+
}

0 commit comments

Comments
 (0)