Skip to content

rickerd/ngArise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ngArise

Build Status GitHub release

Demo

Visit the Github page for a demo

Installing

Download directly

Download ngArise files from GitHub

Bower

bower install ngArise --save

How to Use

Add the dependency ngArise

angular.module('app', ['ngArise']);

Add provider to make configurations (optional)

.config(['ariseProvider', function (ariseProvider) {
    ariseProvider.setOptions(
        {
            title: 'Custom title'
            message: 'Here a message',
            templateUrl: 'path/to/views/message.html'
        }
    );
}]);

Inject Arise service to show / hide

.controller(['Arise', function(Arise) {
    Arise.show();
    // and / or
    Arise.hide();
}]);

Place directive in html as element or attribute

<ng-arise></ng-arise>
<!-- or -->
<div ng-arise></div>

Provider API

Options can be passed to configuration provider globally

The options list:

Option Type Default value Description
title String "Please wait" Message that is shown as H2 in default template
message String "We're loading data" String that is shown as a paragraph in default template
templateUrl String "views/default.html" Specify which template should be loaded