Angular 2/4 How to get route parameters in app component?

前端 未结 3 522
一向
一向 2021-02-12 10:34

As I am new to angular 2/4 I am having trouble setting up a new application as per my need.

I am trying to build an application which will be called for from some anothe

3条回答
  •  野性不改
    2021-02-12 11:11

    This post solved problem. here

    I needed to create a separate component Root and in that i kept my Router-Outlet and added this component as my bootstrap module and it worked!! I do not have reputation more than 50 if i had than i would thanked him on the same post. Thanks man @Fabio Antunes

提交回复
热议问题