在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):eu81273/angular.snackbar开源软件地址(OpenSource Url):https://github.com/eu81273/angular.snackbar开源编程语言(OpenSource Language):JavaScript 51.1%开源软件介绍(OpenSource Introduction):Angular SnackbarPure AngularJS based Snackbar Component. (css based on https://github.com/FezVrasta/snackbarjs) ExamplejsFiddle - http://jsfiddle.net/eu81273/wtfdzehr/ InstallationCopy the script and css into your project and add a script and link tag to your page. <script type="text/javascript" src="/angular.snackbar.js"></script>
<link rel="stylesheet" type="text/css" href="css/angular.snackbar.css"> Add a dependency to your application module. angular.module('myApp', ['angular.snackbar']); And add snackbar container tag to your application. <div class="snackbar-container" data-snackbar="true"></div> This is all. some attributes of angular snackbar are below.
Create snackbarCreating snackbar also very simple. Inject snackbar service to your app then call the service method like below. var app = angular.module('angularApplication', ['angular.snackbar']);
app.controller('defaultController', function($scope, snackbar) {
//create snackbar with default duration(3000ms)
snackbar.create("Hello World!!");
//create snackbar with custom duration
snackbar.create("This is snackbar!!", 5000);
}); Browser CompatibilityReport me please. I just tested on Chrome 39.0.2171.95 m. Changelogsversion 1.0.1
version 1.0.0LicenseThe MIT License. Copyright ⓒ 2015 AHN JAE-HA. See LICENSE |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论