Skip to content

rocketmade/rockauth-angular

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rockauth Angular

Interfacing with rockauth-angular

For now, rockauth-angular is a private repo, but can be cloned and referenced using bower link (described in the development section below)

To setup rockauth-angular, somewhere in your angular app you must define the following constants:

angular.module('rockauth')
  .constant('BaseAPI', 'http://example.com/api')
  .constant('ClientId', 'XYZ')
  .constant('ClientSecret', 'XYZ')
  .constant('FBAppId', 'XYZ')

After that, adding directives is as easy as adding the following to your html:

<ra-registration success-callback="vm.mySuccessCallback"></ra-registration>

List of Directives

  • raRegistration
  • raLogin
  • raGoogle
  • raFacebook
  • raTwitter
  • raInstagram

Development

For development, you can link your angular app to your local rockauth-angular repo by executing the command bower link inside the root of the rockauth-angular directory. Then, inside the root of your app, use the command bower link rockauth-angular

This will create a sym-link inside the bower_components directory that you can then reference as a dependency in the bower.json file of your app using 'rockauth-angular': '*'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published