Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • Thank you! This seems to work as it removed the {{totalQuestions}} but is not showing "5" as total questions yet. I'll play around with it, thanks for the advice. Yes I am new to Angular JS but I've been doing HTML and Swift for a while now! Really appreciate the help :D I think I know what to do now <3 Commented Jan 30, 2018 at 0:44
  • Try initialing $scope.totalQuestions = 0 before the $http.get block. If your HTML shows 0 then it's probably because it's not bound correctly to update the value once the promise is resolved. Commented Jan 30, 2018 at 0:54
  • You can show your love by voting both answers and mark either as the correct one. Commented Jan 30, 2018 at 1:03
  • 1
    Oh non, does this mean @user9286154 is incapable of love? :o( Commented Jan 31, 2018 at 9:05