# Category: components

## Components in angular js

I have a requirement where there are many screens.All the screens follow same pattern. Submit. (A) common layout Page which changes (B) Some design. Common layout For this is the component approach is better one.im using ui router presently. What i did was portion A is parent state and B is child state with different controllers.when i click submit in A it should perform action in B. What is the appropriate approach? Source: AngularJS

## Way to decorate Angular 1.5 \$onInit component for common functionality

We use Angular 1.5 components and we have views where we aggregate multiple components which load their own data mostly using asynchronous back end services. Now we show a loading div till services return response and hide it when we get the response to let user know that we are still processing data for the component. I started thinking if we can implement it in some common way instead of injecting service which shows and […]

## Angularjs component not working in knockoutjs template

I’m trying to launch an AngularJS component from knockout template. Something like below in the html. <!– ko if:something –> <my-angular-component attr1= “text1″> <span data-bind=”text: text1″></span> & <span data-bind=”text: text2”></span> </my-angular-component> <!–/ko –> I need to get the data from the knockout scope to angular scope. But whenever I do so, my angular component is not triggered. Any ideas? Source: AngularJS

## Angular 1.6 TDD routes, components, and controllers without unit testing

Before I explain, I want to be clear that I am asking HOW, not IF. Also, my team is XP with full TDD. It seems like everything I can find about testing Angular 1.6 components and controllers focuses on unit testing, but more and more, in coming to the conclusion that unit testing these items is mostly testing implementation. If I want to test whether clicking something goes to another page, there is no reason […]