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

1 Answer 1

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>
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.