63
rated 0 times
[
67]
[
4]
/ answers: 1 / hits: 27362
/ 10 Years ago, thu, september 11, 2014, 12:00:00
I am working on a MVC 5 project. When I use a html page at my views, it load that page but when I use .cshtml page it is not loading the view. The Blank page appears.
$urlRouterProvider
.otherwise('/app/dashboard');
$stateProvider
.state('app', {
abstract: true,
url: '/app',
templateUrl: 'tpl/app.html'
})
.state('app.dashboard', {
url: '/dashboard',
templateUrl: 'tpl/app_dashboard.html'
})
Please guide me how to use cshtml file or the best way to do it.
More From » c#