What is Angular Routing?

As they already said, routing enables navigation to different views of your application. It is the main way of taking users to different destinations within the web app. From home page to the contact page, for example, you need a route, meaning a path or a way to take you there.The concept is not particular … Read more

What does the .subscribe() function do?

The .subscribe() function is similar to the Promise.then(), .catch() and .finally() methods in jQuery, but instead of dealing with promises it deals with Observables. That means it will subscribe itself to the observable of interest (which is getTasks() in your case) and wait until it is successful and then execute the first passed callback function … Read more

Can’t bind to ‘routerLink’ since it isn’t a known property

You need to add RouterModule to imports of every @NgModule() where components use any component or directive from (in this case routerLink and <router-outlet>. declarations: [] is to make components, directives, pipes, known inside the current module. exports: [] is to make components, directives, pipes, available to importing modules. What is added to declarations only … Read more