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*

7
  • 8
    best answer on my opinion. To have a controller on ng-app level as described in accepted answer is useless in this case. Commented Jun 1, 2014 at 10:28
  • The accepted answer adds unnecessary complication and risks. This version makes it as simple as setting a variable. Commented Nov 10, 2014 at 23:19
  • 3
    If you're dead set on using $rootScope I'd at least extract this out to a service so you don't have $rootScope in your controller. Commented Dec 5, 2014 at 17:29
  • 3
    I want to use this solution but I am curious what the advantages of using it are over document.title = "App"; Commented Dec 10, 2014 at 21:12
  • Does your solution work in this scenario? stackoverflow.com/questions/28760904/… Commented Feb 27, 2015 at 8:53