Angular / Angular basics
Elements of the Component decorator in Angular.
The Component decorator is an object with many properties such as,
selector specifies the tag (html identifier) used to call this component in HTML templates as any standard HTML tags.
templateUrl specifies HTML template path used to display this component. Alternatively template parameter may be used to include the HTML template inlined as a string.
styleUrls: specifies an list of URLs for CSS style-sheets for the component.
import { Component } from '@angular/core'; @Component({ selector: 'app-search', templateUrl: './app.component.html', styleUrls: ['./app.component.css'] }) export class AppComponent { title = 'Shoppers-stop'; }
More Related questions...