Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question