0
我有這個網址,我不知道如何讓角控制器woNum PARAM工作...獲取URL參數是不是AngularJS
爲什麼$ location.search.woNum我控制器構造函數是不確定的? ? ?
收件箱/詳細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);
}
}