Angular 7 Selectors

So what are angular 7 selectors ? Let’s learn it by a simple example. Let’s say index.html file of your angular app looks something like this : <body> <app-root></app-root> </body> And your app.component.ts files looks something like this : import { Component } from ‘@angular/core’; @Component({ selector: ‘app-root’, templateUrl: ‘./app.component.html’, styleUrls: [‘./app.component.css’] }) export class … More Angular 7 Selectors

How to create a new component in Angular 7

Components are important part of Angular. All your components should be in src/app folder. There are two ways you can create components. 1) Manually 2) Automatically using angular CLI Create a component manually Let’s say you want to create a component displaying information about the server. So create a new folder called “server” in src/app … More How to create a new component in Angular 7