I
I
iffkomc2015-09-25 13:54:45
Angular
iffkomc, 2015-09-25 13:54:45

How to organize data transfer between two Angular views?

It is necessary to make it so that I can enter a value in the input on one page, and see this value in a div on another page

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
Maxim, 2015-09-25
@sggr

Everything that is related in general to the application or more than one controller, take out in services.
I think you will find the answer how to do this here jsfiddle.net/b2fCE/1

M
medianoche, 2015-09-26
@medianoche

If by "another page" you mean a separate html page (and not $ routeProvider 's routes), then whenever the model changes, store the data in localStorage and retrieve it on the second page.

M
microf, 2015-09-27
@microf

<form name="myForm"  ng-controller="MyController as ctrl">
   <div ui-view></div>
</form>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question