Noticed strange thing, when I name directive scope parameter dataSource it always undefined.
Here is an example: http://plnkr.co/edit/F0wIVUTj9lavVZyFIxKn?p=preview
If you change dataSource to for example ds everything works.
Question: why?
Noticed strange thing, when I name directive scope parameter dataSource it always undefined.
Here is an example: http://plnkr.co/edit/F0wIVUTj9lavVZyFIxKn?p=preview
If you change dataSource to for example ds everything works.
Question: why?
scope: { dataSource: "=" }instead ofscope: { dataSource: "&" }. controllerFunction is function not simple property. If you will change it dataSource will not be undefined edited sample.