I am using AngularJs in Asp.Net mvc 4. I would like to use the template in $routeProvider instead of templateUrl
I wan to use this one
$routeProvider.when('/url', { template: '/view/page.html',controller: 'myCtrl' })
Instead of this one
$routeProvider.when('/url', { templateUrl: '/view/page',controller: 'myCtrl' })
I don't want to create methods in controller(that only contains return PartialView()) every time I need to implement a page. Is it possible?
Thanks.
/view/page.htmlto be displayed or simply you want to show like/view/page.htmlprinted