Sander,
Thanks. Because of your <div ng-if="false"> I realized that the
whole angularjs does not become active until all controllers have been
loaded. I separated the controllers with the assumption that my first
controller will become active very quickly and remove {{testString}} from
the DOM and once the second controller becomes active it will be added back
into the DOM. The reason this is important to me is because at the time of
creating my kendo menu I need to have the data source available. So I want
to add the following into the DOM when menuData is available (which I wait
for with a $q.all in my menu controller). But if angularjs does not become
active until all controllers have been loaded incl. my menu controller then
menuDataLoaded never becomes false.
I guess what I could do is not having the below code in my html at all but
add it dynamically into the DOM once angularjs has been loaded. This is not
ideal but should work (I think). So then the question is how I can check in
javascript if angularjs finished loading.
<ul ng-if="menuDataLoaded" kendo-menu k-data-source="menuData"></ul>
On Monday, January 26, 2015 at 7:29:49 AM UTC-8, Sander Elias wrote:
> Rob,
>
> Does this help? http://plnkr.co/edit/DVOS4FeL37Skpind6E2U?p=preview
>
> 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.