私は持ってい$scope.number = 1
ます。パスを更新するリスナーを追加したい。
うまくいかない私の試み:
function LocationController($scope, $location) {
$scope.$watch($scope.number, function(path) {
$location.path('/'+$scope.number);
});
}
また、$scope.number
オブジェクト、サブオブジェクトはどのように呼ばれますか?