Having this controller:
class FirstController{
    constructor(){
        ...
    }
    $onInit(){
    }
    updateField(name) {
    ...
        this.callback({id: name});
    }
}
const firstController={
    bindings: {
        site: '<',
        callback: '&'
    },
    controller:FirstController,
    templateUrl:require('./FirstController.html')
};
export default firstController;
I want to call the callback() method into another one, so I did it like this:
import firstController from './../core/firstController/firstController.js';
class SecondCtrl {
    constructor(SecondService, ...) {
    reset() {
        firstController.callback();
         ...
    }
   }
It doesn't work, I get this error message:
Uncaught ReferenceError: firstController is not defined
Any suggestions?
 
    