iam working on angulatjs uirouter.The code contains 2 states say home and new and when i click on any of these links the state & url changess.But the problem is the template corresponding to those state is not loading.
here is my code
var app=angular.module("myApp",['restangular','ui.router']);
app.config(['RestangularProvider',function(RestangularProvider){
RestangularProvider.setBaseUrl('http://localhost:9999')
}])
app.config(['$stateProvider',function($stateProvider){
$stateProvider.
state('home',{
url:'/home',
templateUrl:'/view/home.html'
})
.state('next',{
url:'new',
templateUrl:'/view/new.html'
})
}])
html
<a ui-sref='home'>
home
</a>
<a ui-sref='next'>
new
</a>
i don't know what the problem is? can anyone help me?..