new window using angularjs

Hi,

I am working on responsive web design using html5,material design and angularjs technologies .I have a icon next to text box and if I click on icon a new window/tab should open and will show list of items in the dropdown and the selected item in the dropdown should be populated in the textbox.I am able to open a new window/tab using $window.open("childwindow") in the Parent controller and I am not sure once I select the item in the dropdown that item should be populated back to Parent window textbox.Can anyone provide me sample code how to communicate between parent and child controller in this scenario ?

Thanks in advance
ksd123Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Julian HansenCommented:
As a matter of interest why are you doing this with window.open instead of using an inpage pseudo window (positioned / styled div)

As soon as you start opening child windows with window.open you make the process of communicating between child and parent a whole lot more complicated

Why not use something like Angular for Bootstrap and open a modal window. The modal will then be part of the same page and you can attach controllers directly to the modal that will have access to the scopes of the rest of your application.

https://angular-ui.github.io/bootstrap/

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Angular

From novice to tech pro — start learning today.