Binding element 'index' implicitly has an 'any' type

前端 未结 3 1608
礼貌的吻别
礼貌的吻别 2021-02-12 23:33

Using the demo project of angular2-mdl as a guide I ported the tab component and tried to implement it as follow:

import { Component } from \'@angular/core\';

@         


        
3条回答
  •  北荒
    北荒 (楼主)
    2021-02-13 00:12

    use any or specific type of the variable like ( numbers,string,etc )

    public tabChanged(index:any): void {
        this.activeIndex = index;
    }
    

提交回复
热议问题