You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
REST requires jQuery as it depends on jQuery's AJAX implementation
Usage (with Socket.io)
// Add ngFeathers as dependencyangular.module('myApp',['ngFeathers'])// Optionally configure $feathersProvider.config(function($feathersProvider){$feathersProvider.setEndpoint('http://localhost:3030')// You can optionally provide additional opts for socket.io-client$feathersProvider.setSocketOpts({path: '/ws/'})// true is default; set to false if you like to use REST$feathersProvider.useSocket(true)}).controller('app',function($feathers){varuserService=$feathers.service('users')userService.on('created',function(msg){console.log(msg)})userService.create({username: 'john',password: 'unicorn'}).then(function(res){$feathers.authenticate({type: 'local',username: 'john',password: 'unicorn'}).then(function(result){console.log('Authenticated!',result)}).catch(function(error){console.error('Error authenticating!',error)})console.log(res)}).catch(function(err){console.error(err)})})