angular-ui / ui-calendar

A complete AngularJS directive for the Arshaw FullCalendar.
http://angular-ui.github.io/ui-calendar/
MIT License
1.49k stars 728 forks source link

FIX: calendar-watch-event " & " directive binding needs a function ca… #274

Closed antoinepairet closed 9 years ago

antoinepairet commented 9 years ago

FIX: calendar-watch-event " & " directive binding needs a function call in the markup and a map of argument when its called in JS

See angular doc for directives: https://docs.angularjs.org/guide/directive and the plunkr of the example with the close-dialog which illustrates '& binding': http://plnkr.co/edit/wdDvC9GSXgsW0nA5UdbR?p=preview

Any help for creating a test to avoid further regression would be much appreciated. While all tests pass, they do not actually test the binding and the creation of the calendarWatchEvent function on the directive scope. They only test that if a calendarWatchEvent function is correctly defined, it will be called.

jkurz commented 9 years ago

lgtm