How would I have ui-router go to an external link, such as google.com?

前端 未结 5 1360
孤街浪徒
孤街浪徒 2020-11-30 09:52

For example:

 $stateProvider
            .state(\'external\', {
                url: \'http://www.google.com\',

            })

url assumes

5条回答
  •  天命终不由人
    2020-11-30 10:15

    As mentioned in angular.js link behaviour - disable deep linking for specific URLs you need just to use

    link to external
    

    this will disable angularJS routing on a specific desired link.

提交回复
热议问题