For example:
$stateProvider
.state('external', {
url: 'http://www.google.com',
})
url assumes that this is an internal state. I want it to be like href or something to that effect.
I have a navigation structure that will build from the ui-routes and I have a need for a link to go to an external link. Not necessarily just google, that's only an example.
Not looking for it in a link or as $state.href('http://www.google.com'). Need it declaratively in the routes config.
externalURL
) in your$route
object, a function that redirects the browser if the key/value is present, and simply bind$on("$routeChangeStart", redirectIfExternal)
during either the config or run stage? – Auto