try this,
If you want to bind to an attribute use [attr.colspan]="count"
syntax
Here, colspan is not a property of td element. colspan is an attribute. so we have to add prefix attr to colspan to tell angular that it is an attribute if we not write attr prefix then angular consider it property so it will throw error.