0
比方說,我有途徑哪些用戶點擊:AngularJS RouteProvider。要知道什麼時候去「否則」
app.config(['$routeProvider', function($routeProvider) { $routeProvider.
when('/', {templateUrl: 'partials/myView.html'}).
otherwise({ redirectTo: '/' });
}]);
我想知道什麼url
是(其中用戶點擊),當它進入「otherwise
」。例如,把這個URL放到控制檯日誌中。
可能嗎?