2

I'm tring to build a rss reader for android, ios platforms with angularjs.

It works, but it reads two times each resource.

app.js index.html and home.html codes

app demo

How can I fix it? Thanks..

Pankaj Parkar
  • 134,766
  • 23
  • 234
  • 299
sakarya
  • 383
  • 4
  • 16

1 Answers1

1

You need to remove ng-controller='HomeCtrl' from your home.html which is loading your controller twice, As it already loads the controller from route you need not need to mention it on html.

home.html

<header class="bar bar-nav">
    ..header section..
</header>
<div class="content"> <!--removed `ng-controller='HomeCtrl'` from here-->
    ..markup here..
</div>
Pankaj Parkar
  • 134,766
  • 23
  • 234
  • 299