I can't get a simple example to work
Here's what I am trying to do: (using RC3)
<data-service #service></data-service>
<button (click)="service.data()"> {{service.info}}</button>
in the data-service directive, I have a public data() method
public data = () => {
console.log("DATA called");
return "1,2,3";
};
but when the button is clicked:
I get an error:
... self._el_24.data is not a function. (In 'self._el_24.data()',
my solution is similar to
https://angular.io/docs/ts/latest/cookbook/component-communication.html#!#parent-to-child-local-var
any help would be appreciated
thanks
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.