Remove example files
This commit is contained in:
parent
2516fd8b46
commit
e919380739
Binary file not shown.
Before Width: | Height: | Size: 32 KiB |
Binary file not shown.
Before Width: | Height: | Size: 24 KiB |
Binary file not shown.
Before Width: | Height: | Size: 19 KiB |
|
@ -1,18 +0,0 @@
|
|||
'use strict';
|
||||
|
||||
var controllersModule = require('./_index');
|
||||
|
||||
/**
|
||||
* @ngInject
|
||||
*/
|
||||
function ExampleCtrl() {
|
||||
|
||||
// ViewModel
|
||||
var vm = this;
|
||||
|
||||
vm.title = 'AngularJS, Gulp, and Browserify!';
|
||||
vm.number = 1234;
|
||||
|
||||
}
|
||||
|
||||
controllersModule.controller('ExampleCtrl', ExampleCtrl);
|
|
@ -1,21 +0,0 @@
|
|||
'use strict';
|
||||
|
||||
var directivesModule = require('./_index.js');
|
||||
|
||||
/**
|
||||
* @ngInject
|
||||
*/
|
||||
function exampleDirective() {
|
||||
|
||||
return {
|
||||
restrict: 'EA',
|
||||
link: function(scope, element) {
|
||||
element.on('click', function() {
|
||||
console.log('element clicked');
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
directivesModule.directive('exampleDirective', exampleDirective);
|
|
@ -1,28 +0,0 @@
|
|||
'use strict';
|
||||
|
||||
var servicesModule = require('./_index.js');
|
||||
|
||||
/**
|
||||
* @ngInject
|
||||
*/
|
||||
function ExampleService($q, $http) {
|
||||
|
||||
var service = {};
|
||||
|
||||
service.get = function() {
|
||||
var deferred = $q.defer();
|
||||
|
||||
$http.get('apiPath').success(function(data) {
|
||||
deferred.resolve(data);
|
||||
}).error(function(err, status) {
|
||||
deferred.reject(err, status);
|
||||
});
|
||||
|
||||
return deferred.promise;
|
||||
};
|
||||
|
||||
return service;
|
||||
|
||||
}
|
||||
|
||||
servicesModule.service('ExampleService', ExampleService);
|
Loading…
Reference in New Issue