This file contains hidden or 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
| export const ngDeps = {}; | |
| export function injectNgDeps(deps) { | |
| Object.assign(ngDeps, deps); | |
| }; | |
| export default ngDeps; |
This file contains hidden or 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
| $stateProvider.state('user.login', { | |
| url: '/login', | |
| template: '<react-screen-login></<react-screen-login>', | |
| }); |
This file contains hidden or 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
| import reactButton from 'path/to/react-button'; | |
| angular | |
| .module('app') | |
| .directive(‘reactButton’, reactButton); |
This file contains hidden or 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
| function requireAll(r) { | |
| r.keys().forEach(r); | |
| } | |
| requireAll(require.context('./app/', true, /\.(js|jsx)$/)); |
This file contains hidden or 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
| require('./vendors'); | |
| require('./app/common/index'); | |
| require('./app/core/index'); | |
| require('./app/layout/index'); |
This file contains hidden or 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
| window.moment = require('moment'); | |
| window.$ = require('jquery'); | |
| window.jquery = window.$; | |
| window.jQuery = window.$; |
This file contains hidden or 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
| require('angular'); | |
| require('angular-resource'); | |
| // ...other dependencies |
This file contains hidden or 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
| import { createApiActions } from 'redux-arc'; | |
| import './createOrUpdate'; | |
| const { creators, types } = createApiActions('todo', { | |
| save: { | |
| url: 'path/to/to-do', | |
| method: 'post', | |
| policies: ['createOrUpdate'], | |
| }, | |
| }); |