moo-angular-accordion
Advanced tools
Comparing version 1.0.3 to 1.0.5
{ | ||
"name": "moo-angular-accordion", | ||
"version": "1.0.3", | ||
"version": "1.0.5", | ||
"description": "AngularJS Directive Component of the UI-Toolkit's Accordion for Mutual of Omaha's DXD Team", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
# moo-angular-accordion | ||
AngularJS Directive Component of the UI-Toolkit's Accordion for Mutual of Omaha | ||
## Usage: | ||
### ES6 import syntax | ||
```javascript | ||
import mooAngularAccordion from 'moo-angular-accordion'; | ||
const app = angular.module('myAngularApplicationWithDependancies', ['mooAngular.accordion']); | ||
``` | ||
### CommonJS | ||
```javascript | ||
var mooAngularAccordion = require('moo-angular-accordion'); | ||
const app = angular.module('myAngularApplicationWithDependancies', ['mooAngular.accordion']); | ||
``` |
@@ -6,13 +6,8 @@ import mooAccordionDirective from './mooAccordion.js'; | ||
if (typeof define === 'function' && define.amd) { | ||
// AMD. Register as an anonymous module. | ||
define(['angular'], factory); | ||
} else if (typeof module !== 'undefined' && typeof module.exports === 'object') { | ||
// CommonJS support (for us webpack/browserify/ComponentJS folks) | ||
} else if (root.hasOwnProperty('angular')) { | ||
// Browser globals (root is window), we don't register it. | ||
factory(root.angular); | ||
} else if (typeof exports === 'object') { | ||
module.exports = factory(require('angular')); | ||
} else { | ||
// in the case of no module loading system | ||
// then don't worry about creating a global | ||
// variable like you would in normal UMD. | ||
// It's not really helpful... Just call your factory | ||
return factory(root.angular); | ||
} | ||
@@ -19,0 +14,0 @@ }(this, function (angular) { |
Sorry, the diff of this file is not supported yet
16
2705819
851