angular-digest-auth icon indicating copy to clipboard operation
angular-digest-auth copied to clipboard

using scope in callback

Open cadrogui opened this issue 11 years ago • 2 comments

Hello, how can use $scope in success or any callback, when i try to inject fails.

thanks.

cadrogui avatar Oct 08 '14 22:10 cadrogui

I exactly don't know why it fails, the angular error would be very useful here. Anyway, you shouldn't use the $scope in the auth service. You should inject a service to route your application in a specific view and then use the scope.

tafax avatar Feb 19 '15 13:02 tafax

We need detail step on signin process, i mean after run dgAuthService.start(), next : dgAuthService.setCredentials(user, password); dgAuthService.signin(); then : dgAuthServiceProvider.callbacks.login.push .... in this step are we get response ...

need easy sample for this library

ekoisa avatar Oct 08 '15 10:10 ekoisa