// use inline injection annotation to prevent errors after minification var myApp = angular.module('myApp',[]); myApp.controller('mineController', ['$scope', function($scope) { $scope.name = 'First Name'; }]);