![](/img/trans.png)
[英]How should I extend Injectable from another Injectable with many Injections in angular2?
[英]How recognize current route in angular2 injectable
我想在angular2服務提供商中識別當前路線,以便僅根據活動鏈接獲取我的spa的實際設置。
我怎樣才能做到這一點?
在組件控制器中注入以下內容:
private route: ActivatedRoute
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.