I have two controllers... C1
and C2
, I want to verify a data that I have in C1
but the verification logic is in C2
, So how can I pass that data from C1
to C2
and get back the result in C1
?
I am aware of the services in angular, but for that communication I have to pass all data [Which is too large] from C1
and C2
to service which doesn't seem efficient. Any optimized way to do so ?