Angular 2 Arrow功能在IE 11中不起作用

时间:2016-12-02 08:34:22

标签: angular

我在angular 2项目中使用箭头功能。 IE在加载时会产生一些不寻常的行为。在chrome和Firefox中它运行正常。 IE是否支持Arrow功能?

  ngOnInit() {
    this.myService.subscribeAssignment().subscribe(
        (parameter) => {
            this.notification.userId = parameter.supervisorID;
            this.consultantNotification = true;

        },
        (error: any) => {
            console.log('Error ::' + error);
        });

}

<div *ngIf ="consultantNotification" class="notification"> contents...</div.

此箭头函数正常运行,但该标志未与html绑定。除IE之外的所有浏览器都在工作

0 个答案:

没有答案
相关问题