C
C
Cyber_bober2017-03-03 08:44:43
Angular
Cyber_bober, 2017-03-03 08:44:43

How to build an application architecture in angular with a component approach?

Hello, I read the manuals, but I can not find the answer to this question. For example, we create an application and bind a certain area through ng-view, rendering occurs in it when the state / model changes. How to build architecture correctly?
When creating an application, do we designate several areas and bind components to them, or does one-time interaction occur within only one component? For example, for the main, for the blog?
Or (I dare to assume that this is logical), can we display several components within one page?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DarthJS, 2017-03-03
@Cyber_bober

Everything is written in the ui-router docks in great detail, you can use the routes as your heart desires :)
You can output one component and several :)
Docks: https://github.com/angular-ui/ui-router/wiki/Multi..
Example : embed.plnkr.co/nmTggEdWIcMW5bMRKiok/preview _
If the answer does not quite fit, give at least a small example of what you are going to do, otherwise the question is a bit vague.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question