Download src/app/shared/button/button.component.ts from majemaai/mj-learn: direct link, hf CLI and curl.
- Browser
- Download file 494 Bytes
-
https://huggingface.co/spaces/majemaai/mj-learn/resolve/main/src/app/shared/button/button.component.ts
- Command line
-
hf download hf://spaces/majemaai/mj-learn/src/app/shared/button/button.component.ts
-
curl -L -o button.component.ts https://huggingface.co/spaces/majemaai/mj-learn/resolve/main/src/app/shared/button/button.component.ts
494 Bytes
| import { Component, Input } from '@angular/core'; | |
| import { NgClass } from '@angular/common'; | |
| ({ | |
| selector: 'app-button', | |
| standalone: true, | |
| imports: [NgClass], | |
| template: ` | |
| <button [type]="type" [ngClass]="class" [disabled]="disabled"> | |
| <ng-content></ng-content> | |
| </button> | |
| `, | |
| styleUrls: ['./button.component.css'] | |
| }) | |
| export class ButtonComponent { | |
| () type: 'button' | 'submit' | 'reset' = 'button'; | |
| () class = ''; | |
| () disabled = false; | |
| } | |