-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
creating factory with isolated underscore
- Loading branch information
Manuel Santisteban
committed
Aug 5, 2016
1 parent
6f76428
commit bba3c97
Showing
3 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.idea/ | ||
bower_components/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, _); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} |