Yes, it's a really good patch, but I wanted find a way to do that by Angular routeProvider. Thanks you so much.
2015-05-29 13:18 GMT+01:00 Robert STAICU <[email protected]>: > 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 a topic in the > Google Groups "AngularJS" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/angular/36wUjRT9wN4/unsubscribe. > To unsubscribe from this group and all its topics, 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. > -- 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.
