Hi Sanders This is what I have come up with so far: JSFiddle <http://jsfiddle.net/47m46/12/>
I see that $compile attaches the html template I create to my scope. Am I correct in this? My ng-click function call does now run. However when I add for interest sake a variable to my comtroller - *$scope.name = 'Ocajian';* and try display this within the content created in my click function I run into issues. Initially on load my *$scope.name *is not displayed but as soon as I click on the close button my *$scope.name *value does in fact display. So this leads me to think that the $compile function providing my click function with angular scope only comes into play in certain conditions? Not sure what these conditions are though Not sure why ng-click works but other values in my controller scope is not being displayed. On Wednesday, January 21, 2015 at 12:30:24 PM UTC+2, Sander Elias wrote: > > Hi Ocajian, > > Well, you should come back with your result nevertheless. if this is your > first venture into $compile, I suspect you can use some extra > coaching/pointers ;) > > Regards > Sander > -- 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.
