restorando / angular-pickadate

A simple and fluid inline datepicker for AngularJS with no extra dependencies.
MIT License
273 stars 91 forks source link

allow html for navigation #32

Closed bierdok closed 9 years ago

bierdok commented 9 years ago

for this case for example

  .config(function(pickadateI18nProvider) {
        pickadateI18nProvider.translations = {
            prev: '<i class="icon-prev"></i> Previous',
            next: 'Next <i class="icon-next"></i>'
        }
    })

@restorando: nice module!

gschammah commented 9 years ago

Hi @bierdok, thanks for your contribution!

Could you please add a test for this feature and also add this example in the Readme file?

Also, the linting is failing (you can see the error in the travis ci build)

bierdok commented 9 years ago

I use angular core feature in this case no need to test in my opinion. https://docs.angularjs.org/api/ng/service/$sce#trustAsHtml

gschammah commented 9 years ago

Hi @bierdok

I rebased your PR to master, added some specs, added your Readme changes and push it to master.

Thanks!