Search code examples
javascriptangularjsangularjs-routingangularjs-controllerrss-reader

Feed reader for android, ios with angularjs


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..


Solution

  • 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>