Hello.

I dont know if i'm using the angularjs perpective, but I want to achieve 
the next thing.

I'm using simpony2 to create a web site that needs to follow a certain 
screen flow.
Some *data collected in screen 1 needs to be available in screen 2*

Screen1 -> Screen2 -> ... -> Screen n
     |___data___|

Screen1 works perfect with angualrjs controller.

When I press on submit button, I sent a POST to the simpony2 server 
controller.
The sympony controller proceses some actions and then renders the screen2.

Now I want that my angularjs controller for screen2* has access to the 
parameters I have sent to it.*

I know how to do it through ajax calls using http.get in the angularjs 
controller in the second screen.

$http.get('/route').success(function(data) {
    $scope.miVar = data;
});

but I need the simpony controller to sent the data because it is 
information coming from the first screen


*To summarize*

1

Screen1
(collect data)


2

Submit data to server


3

server gets the data and forward it to the next screen
...
return $this->render('myBundle:step2:index.html.twig', array('data' => 
$screen1Data));


4

???
Here is where I don't know how angularjs is able to load this 'data' to the 
scope of screen2


Can someone help me please?

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to