Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.
This repository was archived by the owner on May 29, 2019. It is now read-only.

$onInit hook from Angular 1.5.0 will not fire for ModalInstance controller #5472

Closed
@radek-anuszewski

Description

@radek-anuszewski

Of course I have in mind that, at this moment, Angular 1.5.0 is not officially supported:

AngularJS (requires AngularJS 1.4.x, tested with 1.4.9)

But have I decided anyway to submit an issue about new $onInit hook problem. The problem is that it will not fire for modal instance controller (specified with controller and controllerAs options for open method). Here is plunker forked from your demo pego which shows an issue: $onInit will not fire for modal instance controller. Some content has been removed, Angular CDN have been updated to use 1.5.0 version and controllerAs syntax has been used.

Update:
Of course problem does not exists with current supported Angular version (1.4.9), because hook is available in 1.5.0 version

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions