AngularJS - Pretty URL'S

  • Pretty URLS get rid of the hashtag

  • Angular by default, uses the hashtag

  • To get clean URLs, configure $locationProvider and set base for relative urls

  • Configuring $locationProvider, will use the HistoryAPI – resulting in clean urls

AngularJS - Using UI Router

  • Routing framework built by Angular team

  • Changes view based on application state, not just route URL

  • Can still use routing to change views with no URL change

  • UI-Router is separate and needs to be loaded

  • Links use ui-sref