Skip to content

Commit

Permalink
feat(module:toast): provides a way for angular new API to self-inject (
Browse files Browse the repository at this point in the history
…#426)

* chore: code specification optimization

* docs: update README.md

* feat(module:toast): provides a way for angular new API to self-inject

* Revert "feat(module:toast): provides a way for angular new API to self-inject"

* feat(module:toast): provides a way for angular new API to self-inject
  • Loading branch information
DreamPWJ authored and Guoyuanqiang committed May 7, 2019
1 parent 83dbeaa commit ad31989
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/toast/toast.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ export interface ConfigInterface {
iconType?: string;
mask?: boolean;
}

@Injectable({
providedIn: 'root'
})
@Injectable()
export class Toast {
static timeout = null;
Expand Down

1 comment on commit ad31989

@Guoyuanqiang
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

close #427

Please sign in to comment.