How can I allow optional parameters to my routes without using a query string and only using one route name? I am currently specifying each route FIVE TIMES to allow for an
Short answer....
.state('login', { url: '/login/:a/:b/:c/:d', templateUrl: 'views/login.html', controller: 'LoginCtrl', params: { a: { squash: true, value: null }, b: { squash: true, value: null }, c: { squash: true, value: null }, d: { squash: true, value: null }, } })