mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-10 21:03:03 -05:00
fix: run prettier on all file to avoid prettier issue inside PR
This commit is contained in:
@@ -5,6 +5,8 @@ import { ChildComponent } from './child.component';
|
||||
standalone: true,
|
||||
imports: [ChildComponent],
|
||||
selector: 'app-root',
|
||||
template: ` <app-child></app-child> `,
|
||||
template: `
|
||||
<app-child></app-child>
|
||||
`,
|
||||
})
|
||||
export class AppComponent {}
|
||||
|
||||
@@ -14,7 +14,9 @@ import { HttpService } from './http.service';
|
||||
selector: 'app-input',
|
||||
standalone: true,
|
||||
imports: [ReactiveFormsModule],
|
||||
template: ` <input type="text" [formControl]="title" /> `,
|
||||
template: `
|
||||
<input type="text" [formControl]="title" />
|
||||
`,
|
||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||
})
|
||||
export class InputComponent {
|
||||
@@ -24,7 +26,9 @@ export class InputComponent {
|
||||
@Component({
|
||||
selector: 'result',
|
||||
standalone: true,
|
||||
template: ` <p>Title is {{ title }}</p> `,
|
||||
template: `
|
||||
<p>Title is {{ title }}</p>
|
||||
`,
|
||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||
})
|
||||
export class ResultComponent {
|
||||
@@ -34,7 +38,9 @@ export class ResultComponent {
|
||||
@Component({
|
||||
selector: 'app-button',
|
||||
standalone: true,
|
||||
template: `<button (click)="validate.emit()">Validate</button>`,
|
||||
template: `
|
||||
<button (click)="validate.emit()">Validate</button>
|
||||
`,
|
||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||
})
|
||||
export class ButtonComponent {
|
||||
@@ -44,7 +50,9 @@ export class ButtonComponent {
|
||||
@Component({
|
||||
selector: 'app-error',
|
||||
standalone: true,
|
||||
template: `<p>Title is required !!!</p>`,
|
||||
template: `
|
||||
<p>Title is required !!!</p>
|
||||
`,
|
||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||
})
|
||||
export class ErrorComponent {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html>
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
|
||||
Reference in New Issue
Block a user