Hey I am new to angularjs Im using controlleras style in angularjs as the code is presentable and net. My problem is calling subfunction in controller my code as follow
 //AngularJS CODE
      (function(){
         'use strict';
         angular.module('mAPP', ['ngMaterial']);
         function helpM(){
            var vm = this; 
            vm.SaveM = function(){
                alert('Save Me Now');
            }
         }
        function SaveCTRL(){
          var vm = this; 
          vm.nineOne = helpM.SaveM;
        }
        angular.module('mAPP')
                .controller('SaveCTRL', [SaveCTRL]); 
      })(); 
//HTML CODE
     <div ng-controller="SaveCTRL as main" layout="column" ng-cloak="" class="md-inline-form" ng-app="mAPP">
     <md-button class="md-raised md-primary" ng-click="main.nineOne()">Submit</md-button>
     </div>
But the alert doesnt execute thanks a lot in advance :(
 
     
    