title: link function assigned to scope is not accessible inside controller constructor function
body: <p>I have a controller constructor function.
  Also have a directive for some dom manipulation.</p>
  
  <p>when we call link function deleteNotification from controller, its giving error </p>
  
  <blockquote>
    <p>deleteNotification is not a function.</p>
  </blockquote>
  
  <p>How can we get the scope of link function here in controller and access method deleteNotification.</p>
  
  <p>any help would be appreciated.</p>
  
  <p>How can we get the scope of link function here in controller and access method deleteNotification.</p>
  
  <pre><code>export class triggeredNotificationController{
      constructor($scope){
         this.$scope = $scope
         this.deleteNotification();
      }
      deleteNotification(){
         self.$scope.deleteNotification();
      }
  }
  
  triggeredNotificationController.$inject=['$scope'];
  
  cModule.controller('triggeredNotificationController',triggeredNotificationController)
  
  cModuleAlertsModule.directive('deleteNotification',[
      function(){
          return {
              scope: false,
              controller: triggeredNotificationController,
              link: function(scope, element, attrs, ctrl){
                  scope.deleteNotification=  function(selectedRowData){
                      //some dom manipulation
                  }
              }
          }
      }
  ])
  export default cvModuleAlertsModule;
  </code></pre>