angular-strap
angular-strap copied to clipboard
Global App Config
It would be great if configs could be set globally for the app instead of individually for each instance. For example, setting the date format for datepickers. Angular-UI does this and I find it very convenient.
var myApp = angular.module('myApp', ['$strap'])
.value('$strap.config', {
datepicker: {
format: 'M d, yyyy'
}
});
I think this is still not possible. It just provides $datepickerProvider which is not sufficient enough. Usecase: user wants to change global date format on all inputs with datepicker. It should use format from server (api call). How would you solve this? Thx
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.