저는 AngularJS에 처음 들어 왔습니다. 제 질문은 URL의 매개 변수 숨기기와 관련되어 있습니다.AngularJS의 URL 매개 변수를 숨기기
<a href="#viewExamwiseStudentsReport?exam_id={{exa.model_exam_id}}&eName={{exa.model_exam_name}}&mMarks={{exa.model_exam_total_marks}}&time={{exa.model_exam_duration}}">
내가 원하지 않는 예를 들어
, 나는
이http://localhost:8080/CareerTurn/#/viewExamwiseStudentsReport
HTML, URL처럼,
http://localhost:8080/CareerTurn/#/viewExamwiseStudentsReport?exam_id=2&eName=College%20Model%20Exam&mMarks=10&time=00:10
나는이 같은 보여주고 싶은이 URL에 매개 변수를 표시하지만 내 JS 컨트롤러에서 사용하려고합니다.
어떻게 구현합니까? 당신은 모든 쿼리 매개 변수를 제거하려면
ui를 사용하고 있습니까? -route 또는 ng-route –
가능한 [AngularJS로 GET 매개 변수를 제거하는 방법?] (http://stackoverflow.com/questions/14526947/how-to-remove-get-params-with-angularjs) – Sajeetharan
@ sachilaranawaka ng-route .. 더 좋은 의견이나 제안이있다 –