Mahesh Sandhanshiv Mahesh Sandhanshiv - 2 months ago 23
AngularJS Question

Change bootstrap theme runtime

Actually i need to change theme on client basis using angularjs.
So suppose if my client is "ABC" so need to select theme "bootstrap_abc_theme", if my client is "XYZ" then it will select "bootstrap_xyz_theme" like that. Basically i need to provide different theme to each and every one client.

Answer

Another solution could be:

Use ng-href in your <link> and modify it's variable in your controller.

Working DEMO