I
I
IlgizVafin2015-03-14 15:02:16
Angular
IlgizVafin, 2015-03-14 15:02:16

AngularJS. Reusable html templates?

Hello!
AngularJS + ASP.NET Web API
The project has a lot of templates that differ slightly from each other. Creating one "universal" template, we come to the conclusion that it contains too much logic for displaying / hiding fields, rules for their validation, etc. Gradually, it turns into a difficult thing to maintain.
Is it possible to generate templates based on the schema described for each specific template and what is the best way to do this?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
TekVanDo, 2015-03-14
@TekVanDo

According to the concept of angular, repeating pieces of html must be placed in directives ...

R
Ramallah, 2015-03-19
@ramallah

Perhaps ng-include would help?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question