Angular 19 Tutorial in Hindi #8 Custom Component
What I mean for custom component
Make folder and files for custom component
Write code in custom component
Add template files in custom component
Interview Questions
import { Component } from '@angular/core';
@Component({
selector: 'app-login',
imports: [],
templateUrl: './login.component.html',
styleUrl: './login.component.css'
})
export class LoginComponent {
}
import { Component } from "@angular/core";
@Component({
selector:'app-profile',
// template:"<h1>Profile </h1>",
templateUrl:'./profile.component.html',
styleUrl:'./profile.component.css'
})
export class ProfileComponent{
}
<h1>Profile component heading tag</h1>
<h1 style="background-color: skyblue;" >Login Component</h1>
<h1>Angular Components</h1>
<app-login></app-login>
<signup></signup>
<app-profile></app-profile>
h1{
color: orange;
padding: 10px;
border: 1px solid orange;
}