angularjs - passing parameters to dynamic templateurl -
assume of pre-requisites done e.g. adding links @ load of html. have , angularjs posting call as
$location.path('/url1'); this goes $routeprovider
$routeprovider.when('/url1', { templateurl: '/public/url1.html/ }) above angularjs dynamic template loading works properly, when want pass parameter not work below
$location.path('/url1/:_id'); $routeprovider.when('/url1/:_id', { templateurl: function(params) { return '/url1' + params._id + '.html'; } }) but receive no parameterised url , can access parameters after posting.
Comments
Post a Comment