facultymatt / angular-unsavedChanges

angular-unsavedChanges
175 stars 81 forks source link

Are there any examples for using this with Angular Translate? #45

Closed danielcrisp closed 9 years ago

danielcrisp commented 9 years ago

It seems useTranslateService is disabled in the demo.

I'm having trouble getting it working, so I just wanted to see a working example.

I've added the strings to my translations but I keep seeing [object Object]

        $translateProvider.translations('en', {
            LOADING: 'Loading',

            reloadMessage: 'Reload message',
            navigateMessage: 'Navigate message'
        });

Probably I've got a problem somewhere else though...

I'm using this as my translation engine: https://angular-translate.github.io/

danielcrisp commented 9 years ago

Ok figured it out, should have read the docs properly

Anyway here is a plnkr that shows it in use with:

http://embed.plnkr.co/GUeQfBWl4KMOfxXN3doR/preview

Stargator commented 9 years ago

Thanks @danielcrisp