Grafikart,
il y a 11 ans
You could also create a onRouteChange to detect the route inside the directive
Bonjour, I'd like to manipulate DOM (launch directive) only when a specific page (route+controller) is triggered. In my app.js, it seems I can only lanch directive when app.js is called (always). How could I do it ? Merci, S.
You could also create a onRouteChange to detect the route inside the directive
I would lazy load the directive using for example the ocLazyLoad plugin https://github.com/ocombe/ocLazyLoad.