<span [loading]="true" [loadingSize]="20"></span>
Each input property stands on its own, and the *
is not necessary
EDIT
change
@Input()
set loading(loading: boolean) {}
to
@Input() loading: boolean;
otherwise you are not doing anything with the value, since your setter function is empty
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…