Angular 1.5 component doesn't call parent controller method

210 Views Asked by At

I'm using angular 1.5 component and I want to call controller's method which is bind to scope from component's method call. Please find below code

<table-pagination previous="getPageName()"></table-pagination>

bindings: {
   previous:"&"
}

this.previous = function () { };

In above example, I want to call getPageName() method of controller which is bind to $scope , here I am not using controllerAs syntax.

0

There are 0 best solutions below