A Simple Angular Directive for Edmodo Integration in your app. Specify your client id(s), callback URI(s) and you're done.
- Include
edmodoLogin.js
. - Add
ngEdmodo
as a dependency to your app. - Add
<edmodo-login></edmodo-login>
to your app where you would want the Edmodo-login Button. - The Call back URI would then receive the code and the login can be authenticated as per Edmodo Docs.
- Step 4 should be preferably done on the Server-side especially if your app uses AngularJS. 5.a) Because of the "Hashbang" provided by the ngRoute(or ui-router as well). 5.b) Edmodo Callbacks shouldn't contain fragments like "#".
- Optional: Track the click event by $window.
Installable via bower
:
bower install ngEdmodo
<div ng-app="myApp">
<edmodo-login></edmodo-login>
<p>^ This is an Edmodo Login button</p>
</div>
♡ CopyHeart 2015 by Sumanth Pagidipalli | Copying is an act of love. Please copy.