We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
地址 : https://www.npmjs.com/package/angular2-toaster
方法: npm install angular2-toaster --save
<toaster-container [toasterconfig]="toasterconfig"></toaster-container>
import { ToasterModule } from '@angular2-toaster'; imports: [ ToasterModule ]
import { ToasterService , ToasterConfig } from 'angular2-toaster';
public constructor ( provite toasterService : toasterService ){}
this.toasterService.pop("success","标题","内容")
public toasterconfig : ToasterConfig = new ToasterConfig({timeout:2000});
这是设置弹窗存在2s; 里面的 ToasterConfig 是上面import来的, toasterconfig 是在html里面传递到插件里的。
注意!!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
集成提示框
此为一个提示框,可设置内容和显示时间等。
地址 : https://www.npmjs.com/package/angular2-toaster
方法: npm install angular2-toaster --save
这是设置弹窗存在2s; 里面的 ToasterConfig 是上面import来的, toasterconfig 是在html里面传递到插件里的。
The text was updated successfully, but these errors were encountered: