I want to use the code form this Plunk.
It has a directive:
myApp.directive('fileModel', ['$parse', function ($parse) {
and a service
myApp.service('fileUpload', ['$http', function ($http) {
and the example injects into the controller thusly:
myApp.controller('myCtrl', ['$scope', 'fileUpload', function($scope, fileUpload){
I have this:
angular
.module('Dashboard')
.controller('DashboardController', DashboardController);
and
function DashboardController($rootScope, $scope, $http,
$interval, $state, $location)
{
But I can't figure out how to inject the file upload into my controller :-(
fileUploadservice?UplaodStuffangular.module('Dashboard',['UplaodStuff ']) ... andfunction DashboardController($rootScope, $scope, $http, $interval, $state, $location,fileUpload)` and also injectUplaodStuffjs file beforeDashboardmodule js. {fileUploadservice in separate module. see this stackoverflow.com/questions/19109291/…