[AngularJS] accessing model data from some components

2017-07-19 Thread Hienadź Budkoŭski
I d use data from event like c1 emit event with y data and c2 subscribe on it

-- 
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 angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] accessing model data from some components

2017-07-19 Thread Stéphane Ancelot
Hi,
I may have misunderstood the concept of model.

I have 2 components : 

c1 : is a form panel with data in ngModel , data are stored in a model 
class.

c2 : need to use data from c1 component.

I am unable to access data in model from c2.

please can you provide me with some tips/examples.

Regards
S.Ancelot

-- 
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 angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.