Hi Cecilie Did u find solution for this problem ? On Thursday, December 11, 2014 at 3:56:26 PM UTC+4, Cecilie Andersen wrote: > > I am learning using directives and used an example from the AngularJS > book, available at GitHub > https://github.com/shyamseshadri/angularjs-book/tree/master/chapter8/datepicker > . > I get an error running tha app (in Angular 1.3.5): > Error: [$compile:multidir] Multiple directives [datepicker, datepicker] > asking for new/isolated scope on: <div ng-switch="datepickerMode" > role="application" ng-keydown="keydown($event)" id="dateField" > datepicker="" ng-model="$parent.currentDate" select="updateMyText(date)"> > > Why is the my app calling the directive two times? How can I fix this? > > See plunker for example code. http://plnkr.co/edit/RtuCck6tsqMRGPawKeYB > My code is more extensive so this code only shows how I have configured > the datepicker directive in my app. > > > Regards Cecilie > > >
-- 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 http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
