项目作者: skamenetskiy

项目描述 :
AngularJs wrapper for bulma
高级语言: JavaScript
项目地址: git://github.com/skamenetskiy/ng-bulma.git
创建时间: 2016-12-17T20:54:19Z
项目社区:https://github.com/skamenetskiy/ng-bulma

开源协议:MIT License

下载


ng-bulma

Build Status
npm
Bower

Demo

https://skamenetskiy.github.io/ng-bulma/

Installation

ng-bulma can be installed using popular package managers or using CDN

Step 1: Include the library

npm

  1. npm install --save ng-bulma

bower

  1. bower install --save ng-bulma

CDN

  1. <script src="https://cdn.rawgit.com/skamenetskiy/ng-bulma/master/dist/bulma.min.js"></script>

Step 2: Include main bulma component into your html

  1. <body ng-app="app">
  2. <!-- YOUR CODE -->
  3. <bulma></bulma>
  4. </body>

Documentation

bulma.module

  1. angular
  2. .module('bulma', [
  3. 'bulma.modal',
  4. 'bulma.progress'
  5. ]);

bulma is the main module which includes the <bulma></bulma> component and the following dependencies:

  • bulma.modal
  • bulma.progress

bulma.service

The bulma service is accessible through the bulma argument.

bulma.modal(options) : promise(BulmaModal)

Option Type Description
options.template string represents the template string
options.templateUrl string represents the url to load the template from
options.controller string function [string,function] represents the modal controller
options.controllerAs string represents the controllerAs definition for the modals’ controller
options.classes object will be passed to modals’ ngClass

bulma.modal Models

BulmaModal

Methods