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
<div class="slide-animate-container">
<div ng-include="template.url"></div>
</div>
Controller
$scope.template.url = "";//some dynamic rules
Here is a link to angular documentation on this:
Post a Comment for "AngularJS: Highly Dynamic Routing"