app.controller('editCtr', ['$scope', '$state', function($scope, $state) { $scope.addTag = function(){ console.log('Hello , you have click add tag btn......') } }]);