나는 과정 Staying Sharp With AngularJs을 따라 가고 있습니다.각도 경로 URL 작성 사용 #!/issue
과정은 app.ts
의 일부 코드를 넣어 :
angular
.module("NoteWrangler", ["ngRoute"])
.config(function ($routeProvider: angular.route.IRouteProvider) {
$routeProvider
.when("/notes", {
templateUrl: "templates/pages/notes/index.html"
});
});
확인을하기 때문에 링크는 다음과 같이 형성된다 :
somedomain/index.html/#/myPage
을하지만 할 때 내 URL은 다음과 같이 만들 수 있습니다 :
somedomain/index.html#!/myPage
왜 다른가요?
".../#/..."
과 "...#!/..."
사이에 있음을 의미합니다.
어떻게이 두 가지를 변경할 수 있습니까?