fix(ivy): special case [style] and [class] bindings for future use (#23232)

PR Close #23232
This commit is contained in:
Matias Niemelä
2018-04-06 12:52:17 -07:00
committed by Miško Hevery
parent 8c1ac28275
commit 1b253e14ff
4 changed files with 122 additions and 4 deletions

View File

@ -142,11 +142,11 @@ The goal is for the `@Component` (and friends) to be the compiler of template. S
| `<div title="Hello {{name}}!">` | ✅ | ✅ | ✅ |
| `<div [attr.value]="exp">` | ✅ | ✅ | ❌ |
| `<div class="literal">` | ✅ | ✅ | ✅ |
| `<div [class]="exp">` | | | |
| `<div [class.foo]="exp">` | ✅ | ✅ | |
| `<div [class]="exp">` | | | |
| `<div [class.foo]="exp">` | ✅ | ✅ | |
| `<div style="literal">` | ✅ | ✅ | ✅ |
| `<div [style]="exp">` | | | |
| `<div [style.foo]="exp">` | ✅ | ✅ | |
| `<div [style]="exp">` | | | |
| `<div [style.foo]="exp">` | ✅ | ✅ | |
| `{{ ['literal', exp ] }}` | ✅ | ✅ | ✅ |
| `{{ { a: 'literal', b: exp } }}` | ✅ | ✅ | ✅ |
| `{{ exp \| pipe: arg }}` | ✅ | ✅ | ✅ |