angular-materialize

WebJar for angular-materialize

License

License

MIT
Categories

Categories

Angular User Interface Web Frameworks
GroupId

GroupId

org.webjars.bower
ArtifactId

ArtifactId

angular-materialize
Last Version

Last Version

0.2.2
Release Date

Release Date

Type

Type

jar
Description

Description

angular-materialize
WebJar for angular-materialize
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/krescruz/angular-materialize

Download angular-materialize

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.bower/angular-materialize/ -->
<dependency>
    <groupId>org.webjars.bower</groupId>
    <artifactId>angular-materialize</artifactId>
    <version>0.2.2</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bower/angular-materialize/
implementation 'org.webjars.bower:angular-materialize:0.2.2'
// https://jarcasting.com/artifacts/org.webjars.bower/angular-materialize/
implementation ("org.webjars.bower:angular-materialize:0.2.2")
'org.webjars.bower:angular-materialize:jar:0.2.2'
<dependency org="org.webjars.bower" name="angular-materialize" rev="0.2.2">
  <artifact name="angular-materialize" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bower', module='angular-materialize', version='0.2.2')
)
libraryDependencies += "org.webjars.bower" % "angular-materialize" % "0.2.2"
[org.webjars.bower/angular-materialize "0.2.2"]

Dependencies

compile (3)

Group / Artifact Type Version
org.webjars.bower : materialize jar [0.97.8,0.98)
org.webjars.bower : jquery jar [2.1.1,)
org.webjars.bower : angular jar [1.3.5,)

Project Modules

There are no modules declared in this project.

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]);

Versions

Version
0.2.2
0.1.9
0.1.5
0.1.4