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

AngularJS. Reusable html templates?

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)
TekVanDo, 2015-03-14

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

Ramallah, 2015-03-19

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