Skip to content

Instantly share code, notes, and snippets.

@WrittenForCoders
Created November 16, 2022 15:49
@Component({
standalone: true,
selector: 'photo-gallery',
// an existing module is imported directly into a standalone component
imports: [MatButtonModule],
template: `
...
<button mat-button>Next Page</button>
`,
})
export class PhotoGalleryComponent {
// logic
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment