Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $rootScope.goToPage = function (here) {
- if (here.type && here.type.id == 'somecontenttype') {
- //Launch.set(here.title, here.mainAction.href, $filter('link')(here.links, 'page'),'');
- $location.path(here.mainAction.href);
- } else if (($filter('link')(here.links, 'page')).length > 0) {
- $location.path($filter('link')(here.links, 'page'));
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement