I am new to angularjs. I have a requirement where I am using a same radio button again and again in each partial html. So, I want to make it as a common template and use it in other partial templates.
<ng-include src="'partial-htmls/toolbox/radio-button.html'"></ng-include>
Which shows the radio button as follows:
Sex : O Male
O Female
This is fine but I need to change the label, text and number of radio buttons somehow in the ng-include
. (which I am thinking to do by passing params somehow)
I am from background of lodash, where it can be easily handled. I thought there might be a way in angular too.
Please help.