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.html
to be displayed or simply you want to show like/view/page.html
printed – NidhishKrishnan Aug 8 at 5:31