Hi!
I have something like this:
HTML:
<form method="post" id="formQuestion" name="formQuestion"
ng-submit="sendForm()" novalidate ng-controller="questionValidation">
<ul>
<div class="slide-animate"
ng-include="'/templates/default/partials/_fields/f1.html'"></div>
<div class="slide-animController questionValidation (child)ate"
ng-include="'/templates/default/partials/_fields/f2.html'"></div>
f1 view partial
<li class="text-center">
<div>{{data | json}}</div>
Controller questionForm (parent)
.controller('questionForm', function($scope, $routeParams) {
$scope.data = {};
$scope.data.productTypeUrl = $routeParams.stringUrl;
...
Controller questionValidation (child)
.controller('questionValidation', ['$scope', '$http', function ($scope, $http) {
alert($scope.$parent.data.productTypeUrl);
$scope.isSubmit = false;
...
The alert into controller shows the correct value, but when i try to show
this value into de view f1.html, the value doesn't show.
What i'm missing?
Thank u in advance.
--
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.