ng star rating is not working while adding totalstars options

i am using ng-starrating https://www.npmjs.com/package/ng-starrating library in my angular project. it works when i didn’t specify the totalstars option like this.

<star-rating value="{{rate}}" checkedcolor="#000000" uncheckedcolor="#ffffff">

`

but doesn’t works if i add totalstars option to this.

<star-rating value="{{rate}}" checkedcolor="#000000" uncheckedcolor="#ffffff"
totalstars="{{rate}}">

it is not showing the stars at all after i include this option.

Source: New feed
Source Url ng star rating is not working while adding totalstars options