mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-13 14:23:02 -05:00
refactor: move libs
This commit is contained in:
26
apps/rxjs/49-hold-to-save-button/src/app/app.component.ts
Normal file
26
apps/rxjs/49-hold-to-save-button/src/app/app.component.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
standalone: true,
|
||||
imports: [],
|
||||
selector: 'app-root',
|
||||
template: `
|
||||
<main class="flex h-screen items-center justify-center">
|
||||
<div
|
||||
class="flex w-full max-w-screen-sm flex-col items-center gap-y-8 p-4">
|
||||
<button
|
||||
class="rounded bg-indigo-600 px-4 py-2 font-bold text-white transition-colors ease-in-out hover:bg-indigo-700">
|
||||
Hold me
|
||||
</button>
|
||||
|
||||
<progress [value]="20" [max]="100"></progress>
|
||||
</div>
|
||||
</main>
|
||||
`,
|
||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||
})
|
||||
export class AppComponent {
|
||||
onSend() {
|
||||
console.log('Save it!');
|
||||
}
|
||||
}
|
||||
5
apps/rxjs/49-hold-to-save-button/src/app/app.config.ts
Normal file
5
apps/rxjs/49-hold-to-save-button/src/app/app.config.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import { ApplicationConfig } from '@angular/core';
|
||||
|
||||
export const appConfig: ApplicationConfig = {
|
||||
providers: [],
|
||||
};
|
||||
Reference in New Issue
Block a user