1.0.0 • Published 8 years ago

angular-material-preloader v1.0.0

Weekly downloads
3
License
ISC
Repository
github
Last release
8 years ago

#angular-materialPreloader An Material Design Preloader directive for angular(without using jquery) that recreates the Material pre-loader (as seen on inbox).

demo is at http://waseembepari.github.io/angular-material-preloader

How to use angular-materialPreloader?

Add the Following code to the <head> of your document.

<link href="css/materialPreloader.min.css" rel="stylesheet prefetch">
<script type="text/javascript" src="js/angular-Material-Preloader.min.js"></script>

Place the template folder in your root directory

Add angularMaterialPreloader dependency to your module

var myApp = angular.module("app", ["angularMaterialPreloader"])

Include <div material-preloader ></div> directive in your html template.

<div material-preloader position="top" height="5px" col1='#159756' col2='#da4733' col3='#3b78e7' col4='#fdba2c' ></div>
// material-preloader as attribute

Or Include <material-preloader ></material-preloader> directive as element in your html template.

<material-preloader position="top" height="5px" col1='#159756' col2='#da4733' col3='#3b78e7' col4='#fdba2c' ></material-preloader>
// material-preloader as element

VARIABLE

$scope.materialPreloader = TRUE/FALSE;
// Use true or false to on/off the materialpreloader.

materialPreloader Options

attributeRequiredDescriptionOptionsDefault
positionNoPosition to place the preloadertop/bottomtop
heightNoThe height of the preloader barany length5px
col1NoColor 1 optionany color#159756
col2NoColor 2 optionany color#da4733
col3NoColor 3 optionany color#3b78e7
col4NoColor 4 optionany color#fdba2c