thank you sir, i am sorry that i did not specify properly i am trying to
pass data from parent component to child component. i used bindings i was
able to access the data from parent controller to child component ex: <div
ng-controller="first as vm"><first-component
data="vm.count"></first-component> </div>

On Wed, Jul 5, 2017 at 10:16 PM, Alpa Chino <[email protected]> wrote:

> To pass data from one component to another would require a service. You
> would then make each component inject that service and then you could watch
> the service for changes or broadcast changes.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Angular and AngularJS discussion" 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 https://groups.google.com/group/angular.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" 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 https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to