Last active
May 30, 2017 22:56
-
-
Save byverdu/afb03d52aab38795c24f7284c8e665b5 to your computer and use it in GitHub Desktop.
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
// app/client/js/controllers/homeModule.js | |
import angular from 'angular'; | |
import { buildImdbCard } from '../services/directives'; | |
const imdbService = require( '../services/imdbService' ); | |
const imdbBroadcaster = require( '../services/imdbBroadcaster' ); | |
const homeController = require( './homeController' ); | |
require( 'angular-ui-notification/dist/angular-ui-notification' ); | |
const dependencies = [ | |
'imdbService', | |
'imdbBroadcaster', | |
'$rootScope', | |
'$timeout', | |
'Notification', | |
homeController | |
]; | |
angular.module( 'homeModule', ['ui-notification']) | |
.directive( 'imdbCard', buildImdbCard ) | |
.service( 'imdbService', ['$http', imdbService]) | |
.factory( 'imdbBroadcaster', ['$rootScope', imdbBroadcaster]) | |
.controller( 'HomeController', dependencies ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment