-
Notifications
You must be signed in to change notification settings - Fork 724
Breaking Change in v0.1.0 #10
Comments
or just let Jquery be the solution? the calendar already uses it to the max. |
angular modules can make use of two way binging in scopes... using scope : {calendar:'='} would bind it to a variable in the parent scope defined like this: aint that the solution? gonna test it... |
Yeah that would work. Sent from my iPhone On Apr 8, 2013, at 3:58 AM, yourilima notifications@github.com wrote:
|
But It would force the calendar to have an isolate scope which would cause the function objects to not be able to be passed in and called correctly. Sent from my iPhone On Apr 8, 2013, at 3:58 AM, yourilima notifications@github.com wrote:
|
In my opinion it would be better to isolate the scope and bind any operations that could be useful to the user trough binding. Isolation of the scope is in my opinion a must. especially if you want to have multiple instances in one page. |
Can you show an example please? Sent from my iPhone On Apr 9, 2013, at 4:24 AM, yourilima notifications@github.com wrote:
|
take a look at my pull request on issue #11 |
fixed with #11 |
We do need to make people aware that there is a breaking change in the new version. Since it was decided to go with a child scope in the new calendar we are no longer attaching the calendar to the scope object. This is because there is no way to have multiple calendars in the same scope and control them differently and it technically smashes the current scope which is bad, so we decided to go with a child scope so that all of the options can still be passed in.
The only difference is now you cannot call $scope.calendar.fullCalendar('changeView', 'agendaDay') anymore.
We need to come up with a way to solve this so that we can call methods like this from the scope without having to attach id's to the directive and make the user use jQuery.
The text was updated successfully, but these errors were encountered: