Because that way you force the MockService to implement all the methods 
your LogonComponent needs. If you forget a method in the MockService your 
LogonComponents constructor won't accept it and throw an error. Otherwise 
you would only have a chance to notice this error at runtime and only if 
your current application path reaches this error situation.

-- 
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 https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to