krescruz/angular-materialize
关于
适用于 Materialize CSS 框架的 AngularJS 指令:https://github.com/Dogfalo/materialize
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文angular-materialize
angular-materialize in action http://krescruz.github.io/angular-materialize/
This library is a set of AngularJS directives which make it possible to use features from Materialize with AngularJS. It is basically a set of directives, which calls the JavaScript functions defined by Materialize. This means that you still need to include Materialize for this to work.
This project is not to be confused with the Angular Material project, which is a standalone Material design implementation for AngularJS.
A minimal example of how to set up this project can be found here: http://krescruz.github.io/angular-materialize/#getting-started
You can download this project through our bower package, or npm package.
Or just use the cdn:
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/angular-materialize/0.2.2/angular-materialize.min.js"></script>
Angular looks for jQuery and if no exists, it uses jQlite. Some directives of angular-materialize uses some jQuery methods, so be sure that Angular uses it instead of jQlite. It can be done by including jquery before you include angular on your view
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.8/angular.min.js"></script>
If you are using Webpack, it can also be done by adding the following lines in your config:
Use with Webpack
//webpack.config.js
plugins: [
new webpack.ProvidePlugin({
'window.jQuery': 'jquery'
})
],
then simply add to your module:
// yourModule.js
// ES6 style
import angularMaterialize from 'angular-materialize';
// OR commonjs style
var angularMaterialize = require('angular-materialize');
angular.module('yourModule', [angularMaterialize]);
探索相关项目
加载中…