I created a file "app.routing.module.ts" and defining my all routes there. Use @NgModule() also to register these routing. After that in html page use "router-outlet". Now, i get an error, "router-outlet" is not a know element. See the picture:
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Mahesh VermaRank #475 · 5.2K reputationPosted Jul 5, 2018, 1:18 AM EDT
Komal Sharma78 reputationPosted Jul 5, 2018, 1:29 AM EDT