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

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -