angularjs - Angular templates - inject paramters -
i developing lot of popups same set of buttons: save, apply, , cancel. thinking have cached template hold these buttons. adding template this:
<ng-include src="'templates/popupbuttongrouptemplate.html'"></ng- include>
and loading templates this:
$http.get('templates/popupbuttongrouptemplate.html', { cache: $templatecache });
that works. need manipulate these buttons. specifically, set them true or false depending on user changes form template added to. how can have code included alone template every time template added form , how send parameter code specify form name use while watching user changes?
thanks
Comments
Post a Comment