// ng generate angular-playground:sandbox cat
import { sandboxOf } from 'angular-playground';
import { CatComponent } from './cat.component';
export default sandboxOf(CatComponent, {
imports: [
// my sandbox modules
MatButtonModule,
...
]
})
.add('default', {
template: `<app-cat>Hey Kitty!</app-cat>`
})
.add('with name', {
template: `<app-cat name="Daria">Hey Kitty!</app-cat>`
})
.add('with gender', {
template: `<app-cat [gender]="gender">Hey Kitty!</app-cat>`,
context: {
gender: 'female'
}
})