`{{onlineUsersCount}}` will display directly when the page is still loading. Try to use `<span ng-bind="onlineUserCount"></span>`.