I have such a directive -
@Directive({ selector: 'someDirective' }) export class SomeDirective{ constructor() {} render = function() {} }
and then I import the directive
import {SomeDirective} from '../../someDirective'; @Page({ templateUrl: '....tem.html', directives: [SomeDirective] }) export class SomeComponent { constructor(){} ngAfterViewInit(){
In ngAfterViewInit, I want to call the render function in a directive. How to do it?
angular ionic2
VISHAL DAGA
source share