I have a project in which I have several sections. the user can only interact with my application through the internal navigation. but if the user writes something in the url, and reloads the page, I would like to be redirected to some state or failing to allow it. how can I do this?
I have this in my code.
angularRoutingApp.run(function($rootScope, $transitions)
{
$transitions.onStart({ }, trans => { })
and in my real project I do validation depending on the state I receive, but in this case I do not know how to detect when navigating directly when writing the url from the browser navigation bar.
Source: AngularJS
from Angular Questions https://angularquestions.com/2017/10/06/stop-browsing-when-putting-url-from-browser-in-angular-js/
via @lzomedia #developer #freelance #web #lzomedia.com
No comments:
Post a Comment