0
나는이 URL을 가지고 있고 어떻게 각도 컨트롤러에서 해당 woNum의 PARAM을 얻는 아무 생각이 작동하지 않습니다? ? ? 컨트롤러의
를 주입 $ routeParams https://docs.angularjs.org/api/ngRoute/service/ $ routeParams
당신이 얻을 수 있는지를 인쇄 해보십시오 :받은 편지함/상세 woNum = CIB12717559
class DetailController {
data: any;
message: string;
static $inject: string[] = ["DataService", "$location", "$filter"];
constructor(private dataService: DataService, private $location, private $filter: ng.IFilterService) {
var woNum = $location.search.woNum;
this.message = "Please wait, loading the work order...";
this.getWorkOrderDetail(woNum);
}
}