TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Niraj Singh
NA
50
36.3k
Issue with UIrouter with asp.net SPA
Oct 13 2016 7:29 AM
Hello Dear,
I am creating a project in asp.net MVC Single Page Application and trying to implement angularjs. Here problem is which i am facing that when i want to open html template then it gives error path not found. if I open template after creating a server side controller for that then it gets open. Here I need to open html template without server side action. what should i do?
Please have a look at my angular UIrouting code
'use strict';
var app=angular
.module('sbAdminApp', [
'ui.router'
])
app.config(['$stateProvider', '$urlRouterProvider', '$locationProvider',
function ($stateProvider, $urlRouterProvider, $locationProvider) {
$urlRouterProvider.otherwise('/');
$locationProvider.html5Mode({
enabled: false,
requireBase: false
});
$stateProvider
.state('Home', {
url: '/',
views: {
'user': {
templateUrl: '/Views/Home/Test.html',
data: { pageTitle: 'Demo Home' },
},
},
})
}]);
Reply
Answers (
2
)
what is node modules how to install this
cannot find module @angular/core