Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
SkyToastCustomDemoComponent
} from './toast-custom-demo.component';
@Component({
selector: 'sky-toast-demo',
templateUrl: './toast-demo.component.html'
})
export class SkyToastDemoComponent {
public selectedType: SkyToastType = SkyToastType.Info;
public types: any[] = [
{
value: SkyToastType.Info,
label: 'Info'
},
{
value: SkyToastType.Success,
label: 'Success'
},
{
value: SkyToastType.Warning,
label: 'Warning'
},
{
value: SkyToastType.Danger,
label: 'Danger'
}
];
constructor(
private toastService: SkyToastService
) { }