-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WIP]Updated gulp file to run react code as well
- Loading branch information
Showing
5 changed files
with
215 additions
and
139 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
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
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
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,20 @@ | ||
//inject angularjs dependencies so that it can be used in react code. | ||
|
||
export const ngDeps = {}; | ||
|
||
export function injectNgDeps(deps) { | ||
Object.assign(ngDeps, deps); | ||
}; | ||
|
||
export default ngDeps; | ||
|
||
var storageModule = angular.module("TendrlModule"); | ||
|
||
storageModule.run([ | ||
"$rootScope", | ||
"$state", | ||
"$q", | ||
($rootScope, $state, $q) => { | ||
injectNgDeps({ $rootScope, $state, $q }); | ||
}, | ||
]); |
Oops, something went wrong.