accessing model data from some components

16 views
Skip to first unread message

Stéphane Ancelot

unread,
Jul 19, 2017, 5:45:27 AM7/19/17
to Angular and AngularJS discussion
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

Hienadź Budkoŭski

unread,
Jul 19, 2017, 2:37:05 PM7/19/17
to Angular and AngularJS discussion
I d use data from event like c1 emit event with y data and c2 subscribe on it

Stéphane Ancelot

unread,
Jul 24, 2017, 3:46:33 AM7/24/17
to Angular and AngularJS discussion
Reply all
Reply to author
Forward
0 new messages