AngularJS Interview Questions

What are the basic steps to unit test an AngularJS filter? (Question provided by Daniel Lamb) Inject the module that contains the filter. Provide any mocks that the filter relies on. Get an instance of the filter using $filter(‘yourFilterName’). Assert your expectations. Dependency injection is a powerful software design pattern that Angular employs to compose responsibilities through an intrinsic

Read More