Here is my index page
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<script src="../Scripts/angular.js"></script>
<script src="../Scripts/angular-ui-router.js"></script>
<script src="js/NestedApp.js"></script>
</head>
<body ng-app="customApp">
Index Level
<a ui-sref="FirstPage">FirstPage</a>
<div ui-view></div>
</body>
</html>
Here is my FirstPage
<h1>Settings Level</h1>
<hr />
<a ui-sref="Firstpage.profile">Profile</a>
<a ui-sref="Firstpage.account">Account</a>
<div ui-view></div>
Here is my route,js
var app = angular.module('customApp', ['ui.router']);
app.config(function ($stateProvider, $urlRouterProvider) {
$stateProvider
.state('FirstPage',
{
//url:'/',
url: '/',
templateUrl: 'FirstPage.html',
})
.state('Firstpage.profile', {
url:'/profile',
templateUrl: '../profile.html'
});
$urlRouterProvider.otherwise('/FirstPage');
})
First Level routing works fine
Here is url for the first level routing http://localhost:59367/app/customIndex.html#/
When i click Profile link, here is the error i m getting
Error: Could not resolve 'Firstpage.profile' from state 'FirstPage'
Can someone help me with this