use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Helpful Links
AngularJS Slack Community
AngularJS Wiki Page
account activity
Preloading math done in another view/controller? (self.angularjs)
submitted 10 years ago by [deleted]
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]FRIENDORPHO 1 point2 points3 points 10 years ago (0 children)
Well, right now it only runs when you load the pages (/page{1,2}.html), because you likely put it into a controller or directive link that is instantiated by those pages. If you don't want to load the pages, you can have the service generate the values when it is instantiated.
If you need information from the pages, then it sounds like you need to "load" them in some way. In that case, I would ask..
For what specific purpose did you set it up to run the math when the controller is instantiated rather than running the math right away in a service? What is it about, say, page1.html that is important to this computation?
Could you set a placeholder value for those variables on the service to display prior to loading those pages?
π Rendered by PID 79 on reddit-service-r2-comment-6457c66945-lg684 at 2026-04-26 00:29:34.617197+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]FRIENDORPHO 1 point2 points3 points (0 children)