Hi Sander! Nice simple solution, thanks a lot! I'll see if I can persuade them, otherwise this is a great help!
Regards Peter Den tisdagen den 9:e december 2014 kl. 15:03:28 UTC+1 skrev Sander Elias: > > Hi Peter, > > hmm, do you really need this job? Personally I would pass upon it. I > prefer not to work in backward faced environments. Mobile app designers > that require full page loads? I can not see that end well for anyone. > > What happens to your app if you land on a new link, without being routed > from withing the app. (meaning, open up a new browser, go to > https://myhost.com/#!/somePartOfMyApp) Does that work like one would > expect? > As soon as you are sure that is working well, you can adopt your links. > Personally I would create a new link directive. something like: > > function hardLink() { > var ddo={ > restrict: 'E', > scope: {src: '@'}, > link: link > }; > return ddo; > //// > function link(scope,elm,attr) { > elm.on('click', function (){ > window.location = scope.src; > }); > } > } > > you can see this directive in action here: > http://plnkr.co/edit/otEdXGfI1NMEOkJeT3e5?p=preview > > hope this helps, > Regards > Sander > > -- You received this message because you are subscribed to the Google Groups "AngularJS" 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 http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
