>
> I personally use ui.router(you can search it on google) and use states.
>
var modules = ['ui.router'],
dependencies = [];
angular
.module('table', modules)
.config(function($stateProvider){
$stateProvider
.state('home',{
url:'/',
views:{
'example':{
template: '<p>In here we will have our table</p>'
}
}
})
.state('page', {
url: "/pageName",
views:{
'example':{
templateUrl: "/templates/page"
}
}
})
}).controller('MyCtrl', ['$state', function($state){$state.go('page')}])
If you go on state page your url will look like
www.your-domain.com/#/pageName
I hope this helps. Also original url should be www.your-domain.com/ to have
/#/pageName.
Have a good day
--
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.