Angular-tree-component: 'Binding to event property 'onActivate' is disallowed for security reasons'

Created on 15 Mar 2017  路  5Comments  路  Source: CirclonGroup/angular-tree-component

I've encountered this error with version ^3.2.3 and angular-cli version 3.10.10 when trying to bind the onActivate event. Don't know what to do.

bug

bug Priority

Most helpful comment

The problem is not the brackets/paranthesis... Is it correct use brackets there, but the problem is the prefix on, if you remove it should works (probably is same reserved word which break only during the test)

All 5 comments

Need to remove 'on' in all events and make a deprecation warning.
Who wants to make a pull request?

can somebody reproduce this error? I tested it on another machine with the same version of angular cli and it worked without any errors. Will try to find the cause of this warning, since it doesn't seem to be a trivial error.

@olastor it looks like you used brackets [onDeactivate] instead of paranthesis (onDeactivate) to bind to outputs.

@olastor did it solve it for you? I'm closing the issue, if it persists please re-open

The problem is not the brackets/paranthesis... Is it correct use brackets there, but the problem is the prefix on, if you remove it should works (probably is same reserved word which break only during the test)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

CC84 picture CC84  路  4Comments

salilbajaj picture salilbajaj  路  4Comments

thohoh picture thohoh  路  5Comments

Luis16287 picture Luis16287  路  5Comments

Vishnusangam picture Vishnusangam  路  4Comments