Skip to content Skip to sidebar Skip to footer

Angularjs: Highly Dynamic Routing

Hi, I am currently looking to implement something like this (AngularJS): $routeProvider .when('/root/:controllerName/blah/:blahId/blah/:blah', { templateUrl: '/tmpl/:co

Solution 1:

I do not think you will be able to resolve this using ngRoute but I think ngInclude should be able to help:

Html

<divclass="slide-animate-container"><divng-include="template.url"></div></div>

Controller

$scope.template.url = "";//some dynamic rules

Here is a link to angular documentation on this:

https://docs.angularjs.org/api/ngRoute/directive/ngView

Post a Comment for "Angularjs: Highly Dynamic Routing"