0

I have two pages. The first page is a list of products. The second page is showing product details. The two pages have different ng-app and ng-controller.

Using ng-click the product id should be passed through the first script (first.js) to the second script (second.js) but I am unable to pull the product id into second script.

Please help me to solve the issue because I am newbie to angular JS.

3
  • 1
    if these two pages are part of one and the same app, why they have two different ng-app? you are missing scope fundamentals. Commented Apr 1, 2016 at 13:19
  • 1
    Hey, here are some tips for you: If you want help from the community you need to give a short piece of code to show what you have done so far. Also please use the search to check if the question has been asked before. Good luck with your code :) Commented Apr 1, 2016 at 13:24
  • Possible duplicate of AngularJS: pass parameter between controllers Commented Apr 1, 2016 at 13:25

0

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.