Open guyschlider opened 8 years ago
The defaut templates are stored in the templateCache. You can use $templateCache.get() to retrieve the template that's defined for each of the cases you mentioned, then modify and replace it, or just overwrite it altogether with $templateCache.put().
For example, to change the default OK button style on the confirm template, I did this:
var tpc = $templateCache.get('/dialogs/confirm.html');
tpc = tpc.replace('btn-default', 'btn-success');
$templateCache.put('/dialogs/confirm.html',tpc);
I suppose I could have just done some style work to address this issue, but I was wondering how to get at the stuff anyway and this was the result.
Hi,
Whats the best practice to override the default templates for error/notify/etc ? Should I change the digits.js module or there is another way?
thanks