I am working on MVC 5 project. When I use html page it load that page but
when I use .cshtml page it is not loading, 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'
})
if I used .cshtml file instead of html. It shows blank page. is there any
way to call my .cshtml pages instead of html pages? Thanks.
On Friday, May 23, 2014 8:22:07 PM UTC+5, steven smock wrote:
>
> What happens? Does it fail to load anything at all? Are there any errors
> thrown?
>
> As I understand it, .cshtml with Razor will only help you when it is
> called via an MVC GET action that returns it as a "rendered" view.
>
> Can you try specifying the URL of the action instead, i.e.
> /MyController/MyView, instead of /Views/MyController/MyView.cshtml?
>
> On Friday, May 23, 2014 1:54:21 AM UTC-4, Sombir Verma wrote:
>>
>>
>> Is angular routing template url support for .cshtml file in ASP.Net MVC
>> 4 Project ?
>>
>> if yes then please guide. because when I use html page or .aspx page
>> it load that page but when I use .cshtml page it is not loading the view.
>>
>> Thanks in advance :)
>>
>
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.