Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IPostLink

Interface for the $postLink lifecycle hook https://docs.angularjs.org/api/ng/service/$compile#life-cycle-hooks

Hierarchy

  • IPostLink

Index

Methods

Methods

$postLink

  • $postLink(): void
  • Called after this controller's element and its children have been linked. Similar to the post-link function this hook can be used to set up DOM event handlers and do direct DOM manipulation. Note that child elements that contain templateUrl directives will not have been compiled and linked since they are waiting for their template to load asynchronously and their own compilation and linking has been suspended until that occurs. This hook can be considered analogous to the ngAfterViewInit and ngAfterContentInit hooks in Angular 2. Since the compilation process is rather different in Angular 1 there is no direct mapping and care should be taken when upgrading.

    Returns void

Generated using TypeDoc