How is your directive scope defined and do you really want to acces
something out of the directive via the scope? (take a look at
https://docs.angularjs.org/guide/directive - Isolating the Scope of a
Directive - good explenation with examples to play with).
Am Dienstag, 6. Januar 2015 11:02:03 UTC+1 schrieb Akshath Kumar:
>
> Hi,
>
> There is one scenario where am accessing a ngModel value inside a form
> directive but the parent scope is not getting inside this form directive.
> How can i access the parent scope inside this form. The code look like
> below,
> <html>
> <form>
> </form>
>
> <form sf-schema="schema" sf-form="form"> {{$scope.customVal}}</form>
>
> </html>
>
> In the above code sf-schema is an directive used for dynamic form
> building, $scope,customVal which is defined inside parent scope. While am
> trying to print the value of parent scope inside form directive its not
> getting accessed. So what is the reason behind this issue. Could anyone
> help me to sort out this issue.
>
>
>
> Regards,
>
> Akshath
>
--
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.