Organizational Research By

Surprising Reserch Topic

Experts Most Trusted Topic


angularjs pass state param to data field


angularjs pass state param to data field  using -'javascript,angularjs,angular-ui-router'

How can I pass the site_id parameter to pageTitle from data ?

.state('site', {
   url: "/site/:site_id",
   templateUrl: "views/site_detail.html",            
   data: {pageTitle: 'Site :' + $scope.$state.params.site_id},
   controller: "SiteDetailController"
})

    

asked Oct 13, 2015 by devkumargupta
0 votes
3 views



Related Hot Questions



Government Jobs Opening


...