toddmotto / angular-component

Fully featured .component() polyfill for Angular v1.3+
https://toddmotto.com
Other
191 stars 29 forks source link

one way binding syntax doesn't work #14

Closed vanceingalls closed 8 years ago

vanceingalls commented 8 years ago

when using the following syntax for one way data binding

binding: {
  property: "<"
}

the following error is thrown

Error: [$compile:iscp] Invalid isolate scope definition for directive 'componentName'. Definition: {... property: '<' ...}
toddmotto commented 8 years ago

What angular version are you using?

@toddmotto

On 6 Feb 2016, at 08:42, Vance Ingalls notifications@github.com wrote:

when using the following syntax for one way data binding

binding: { property: "<" } the following error is thrown

Error: [$compile:iscp] Invalid isolate scope definition for directive 'componentName'. Definition: {... property: '<' ...} — Reply to this email directly or view it on GitHub.

vanceingalls commented 8 years ago

1.3.20

toddmotto commented 8 years ago

One-way binding only works in 1.5+ as it's new - it needed to be polyfilled (which I've just done here: https://github.com/toddmotto/angular-component/commit/b737e2782c75ff8852fea8943f180080896efa9e) if you wouldn't mind testing.

winnemucca commented 7 years ago

I actually got this on 1.5.