To all members of the Google Angular community,
I've been trying to use colorbox with angular, without much success.
In my view I have sth like this:
...
*<button colorbox>open dialog</button> *
...
,where 'colorbox' is a directive that launches the colorbox.
For my colorbox directive definition I have this:
*app.directive('colorbox', function(){*
*...*
* element.click('bind', function(){*
* $colorbox({*
* href: 'path/to/my/colorboxcontentfile.html',*
* })*
* })*
*})*
The above code works. So I have a bunch of html code inside the
'colorboxcontentfile.html', and
inside it there is a controller and a bunch of ng-models and other
angularjs directive.
The only problem is that the angularjs code is not being read ( so
ng-controllers, ng-models and other ng directives )
are not being read/compiled properly.
How can I get it to work?
Thanks
PS: I basically try to have a controller inside the content of a colorbox
when it opens, so feel free to make
other suggestions if you think your suggestion can be a better solution.
--
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/groups/opt_out.