i have 2 different views of each page in application. 1 view editable view user can come , edit stuff.this view has buttons, text input, text area etc. other view used view data. buttons should hidden, text input, text area editable should replaced label.
so have doubt whether should have:
(i) 2 different html files each view can changed inside router
(ii)same html file , use ng-if
(iii)same html file , create directive each change
this depends on how many ng-if
directives have create. in other words how large view is.
if small view - go ng-if
.
if not, use separate template view.
Comments
Post a Comment