Using Ng-Routes to change to diff pages and checking Authentication as well using resolver