Skip to content

Commit

Permalink
creating factory with isolated underscore
Browse files Browse the repository at this point in the history
  • Loading branch information
Manuel Santisteban committed Aug 5, 2016
1 parent 6f76428 commit bba3c97
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.idea/
bower_components/
16 changes: 16 additions & 0 deletions angular-underscorejs.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/**
* angular-underscorejs: underscorejs + AngularJS
*
* @author Manuel Santisteban <[email protected]>
* @url https://github.com/Xen3r0/angular-underscorejs
* @license MIT
*/
(function (angular, _) {
var isolate_ = angular.copy(_);

angular.module('xen3r0.underscorejs', [])
.factory('_', function () {
return isolate_;
})
;
})(angular, _);
26 changes: 26 additions & 0 deletions bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"name": "angular-underscorejs",
"homepage": "https://github.com/Xen3r0/angular-underscorejs",
"authors": [
"Manuel Santisteban <[email protected]>"
],
"description": "Wrapper underscorejs with AngularJS",
"main": "angular-underscorejs.js",
"keywords": [
"angular",
"underscorejs",
"wrapper"
],
"license": "MIT",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
],
"dependencies": {
"underscore": "^1.8.3",
"angular": "angularjs#^1.5.8"
}
}

0 comments on commit bba3c97

Please sign in to comment.