在角1中,我们可以这样做一次束缚:{{ ::myFunction() }}
.
在Angular 2中,这是抛出:
EXCEPTION: Template parse errors:
Parser Error: Unexpected token : at column 2 in [{{ ::consent(false, undefined, box) }}] in CookieConsent@5:29 ("ull-right" href="" (click)="consent(true, $event, box)">De acuerdo</a>
<span class="hidden">[ERROR ->]{{ ::consent(false, undefined, box) }}</span>
我们怎么才能在Angular 2中做一次装订呢?