This is my demo using angularjs, for creating a service file, and adding service to a controller.
I have two problems with my demo:
Also check for spelling mistakes.
var MyApp = angular.module('AppName',[]); MyApp.controller('WRONG_SPELLING_MyCtrl', ['$scope', MyControllerCtrl]) function MyControllerCtrl($scope) { var vm = $scope; vm.Apple = 'Android'; } {{Apple}}