X Tutup
Skip to content

Angular1 directive with controllerAs cannot receive data from parent Angular2 component #6718

@szgabsz91

Description

@szgabsz91

Hi,

I've created a little JSFiddle example to demonstrate the problem I'm hitting.

The first directive uses bindToController and controllerAs, and it does not receive the name attribute. However, when I remove these 2 properties from the DDO, the received attribute value is displayed properly.

From what I've read about Angular2 and the upgrade process, this should work. Also, I tried to use AngularJS 1.5 instead of AngularJS 1.4 and migrate to the module.component(...) syntax, but I couldn't solve the issue.

Is this a bug?

(Sorry for using vanilla ES5, but I want to test the upgrade process with my existing codebase before migrating to Typescript.)

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      X Tutup