title: AngularJS add function to scope
body: <p>Hi I have annoying problem. I am trying to add two methods to $scope. And I am doing this right this:</p>
  
  <pre><code>function typeCtrl ($scope, $timeout) {    
    $scope.addType = function(){
        requestHelper.addType();
    };
    $scope.removeType = function(number){
        alert("asdasdsad");
        requestHelper.removeType(number);
    };
   };
  </code></pre>
  
  <p>And I am trying to call it this way:</p>
  
  <pre><code>&lt;button id="addType" class="btn btn-primary glyphicon glyphicon-plus" ng-click="addType()"&gt;&lt;/button&gt;
  &lt;button id="removeRequest" class="btn btn-danger glyphicon glyphicon-minus" ng-click="removeType(1)"&gt;&lt;/button&gt;
  </code></pre>
  
  <p>A method addType() works correctly but angular not see removeType() method. Can you tell me whay I am doing wrong. Thanks for replies.</p>