Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
54
rated 0 times [  56] [ 2]  / answers: 1 / hits: 16173  / 9 Years ago, thu, april 23, 2015, 12:00:00

I'm new to AngularJS and trying to setup an app that reads an RSS feed and displays the items upon page load.



I have figured out how to have the data loaded and displayed upon clicking a link (see fiddle), but can't figure out how to have this happen on page load.



My thought is that I'm not using $scope properly or should be using a model.



Any help is appreciated.



Code: http://jsfiddle.net/mikeyfreake/Lzgts/312/


More From » angularjs

 Answers
89

Just call the method $scope.loadFeeds() after defining the method itself.


[#66930] Wednesday, April 22, 2015, 9 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
sidneyh

Total Points: 118
Total Questions: 108
Total Answers: 105

Location: Mali
Member since Fri, Jun 18, 2021
3 Years ago
sidneyh questions
Tue, Jun 7, 22, 00:00, 2 Years ago
Wed, Apr 13, 22, 00:00, 2 Years ago
Wed, Aug 12, 20, 00:00, 4 Years ago
Wed, Jun 3, 20, 00:00, 4 Years ago
Fri, Apr 24, 20, 00:00, 4 Years ago
;