Example for API in Angular Toast Component