Couldn't think of a better subject line. How do I route to a path from the
index page...
For eg:
website.com/3R2YA2
Here is the relevant section of the config:
$urlRouterProvider.otherwise('/');
.state ('signin', {
url: '/{accountCode:[0-9A-Z]{6}}',
templateUrl: 'views/student/signin.html',
controller: 'studentSigninCtrl',
authenticate: false
})
state ('/', {
url: '/',
templateUrl: 'views/landing.html',
controller: 'landingCtrl',
authenticate: false
})
website.com/#!/3R2YA2 -- Works perfectly. How do I get the
website.com/3R2YA2 to work as well?
Thanks for all the help.
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" 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 https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.