├── .versions ├── README.md ├── accounts-ui-angular.js ├── login-buttons-directive.js └── package.js /.versions: -------------------------------------------------------------------------------- 1 | accounts-base@1.2.4-rc.4 2 | accounts-ui@1.1.7-rc.4 3 | accounts-ui-unstyled@1.1.10-rc.4 4 | allow-deny@1.0.2-rc.4 5 | babel-compiler@6.5.2-rc.4 6 | babel-runtime@0.1.6-rc.4 7 | base64@1.0.6-rc.4 8 | binary-heap@1.0.6-rc.4 9 | blaze@2.1.5-rc.4 10 | blaze-html-templates@1.0.2-rc.4 11 | blaze-tools@1.0.6-rc.4 12 | boilerplate-generator@1.0.6-rc.4 13 | caching-compiler@1.0.2-rc.4 14 | caching-html-compiler@1.0.4-rc.4 15 | callback-hook@1.0.6-rc.4 16 | check@1.1.2-rc.4 17 | ddp@1.2.3-rc.4 18 | ddp-client@1.2.3-rc.4 19 | ddp-common@1.2.3-rc.4 20 | ddp-rate-limiter@1.0.2-rc.4 21 | ddp-server@1.2.4-rc.4 22 | deps@1.0.10-rc.4 23 | diff-sequence@1.0.3-rc.4 24 | dotansimha:accounts-ui-angular@0.0.4 25 | ecmascript@0.4.1-rc.4 26 | ecmascript-runtime@0.2.8-rc.4 27 | ejson@1.0.9-rc.4 28 | geojson-utils@1.0.6-rc.4 29 | html-tools@1.0.7-rc.4 30 | htmljs@1.0.7-rc.4 31 | id-map@1.0.5-rc.4 32 | jquery@1.11.6-rc.4 33 | less@2.5.5-rc.4 34 | localstorage@1.0.7-rc.4 35 | logging@1.0.10-rc.4 36 | meteor@1.1.12-rc.4 37 | minifier-js@1.1.9-rc.4 38 | minimongo@1.0.12-rc.4 39 | modules@0.5.1-rc.4 40 | modules-runtime@0.6.1-rc.4 41 | mongo@1.1.5-rc.4 42 | mongo-id@1.0.2-rc.4 43 | npm-mongo@1.4.41-rc.4 44 | observe-sequence@1.0.9-rc.4 45 | ordered-dict@1.0.5-rc.4 46 | promise@0.6.4-rc.4 47 | random@1.0.7-rc.4 48 | rate-limit@1.0.2-rc.4 49 | reactive-dict@1.1.5-rc.4 50 | reactive-var@1.0.7-rc.4 51 | retry@1.0.5-rc.4 52 | routepolicy@1.0.8-rc.4 53 | service-configuration@1.0.7-rc.4 54 | session@1.1.3-rc.4 55 | spacebars@1.0.9-rc.4 56 | spacebars-compiler@1.0.9-rc.4 57 | templating@1.1.7-rc.4 58 | templating-tools@1.0.2-rc.4 59 | tmeasday:check-npm-versions@0.1.1 60 | tracker@1.0.11-rc.4 61 | ui@1.0.9-rc.4 62 | underscore@1.0.6-rc.4 63 | webapp@1.2.6-rc.4 64 | webapp-hashing@1.0.7-rc.4 65 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # accounts-ui-angular 2 | AngularJS wrapper for Meteor's Account-UI package 3 | 4 | # How to use? 5 | - Make sure you have the `angular` package in your root account. 6 | - Add the package: 7 | `meteor add dotansimha:accounts-ui-angular` 8 | - Add a dependency on your AngularJS module. For example: 9 | ```javascript 10 | angular.module('myApp', ['angular-meteor', 'accounts.ui']); 11 | ``` 12 | 13 | - Use it in your app, for example: 14 | ```html 15 | 16 | ``` 17 | -------------------------------------------------------------------------------- /accounts-ui-angular.js: -------------------------------------------------------------------------------- 1 | if (!window.angular) { 2 | try { 3 | if (Package['modules-runtime']) { 4 | var require = Package['modules-runtime'].meteorInstall(); 5 | require('angular'); 6 | } 7 | } catch(e) { 8 | throw new Error('angular package is missing'); 9 | } 10 | } 11 | 12 | angular.module('accounts.ui', []); 13 | -------------------------------------------------------------------------------- /login-buttons-directive.js: -------------------------------------------------------------------------------- 1 | angular.module('accounts.ui').directive('loginButtons', function() { 2 | return { 3 | restrict: 'EA', 4 | scope: true, 5 | template: '
', 6 | link: function(scope, element) { 7 | Blaze.render(Template.loginButtons, element[0]); 8 | } 9 | } 10 | }); -------------------------------------------------------------------------------- /package.js: -------------------------------------------------------------------------------- 1 | Package.describe({ 2 | name: 'dotansimha:accounts-ui-angular', 3 | summary: 'AngularJS wrapper for Meteor\'s Account-UI package', 4 | version: '0.0.4', 5 | documentation: 'README.md', 6 | git: 'https://github.com/dotansimha/accounts-ui-angular' 7 | }); 8 | 9 | Package.onUse(function (api) { 10 | api.versionsFrom('METEOR@1.2.0.1'); 11 | api.use('angular:angular@1.4.7', 'client', { weak: true }); 12 | api.use('blaze-html-templates', 'client'); 13 | 14 | api.imply('accounts-ui'); 15 | 16 | api.addFiles([ 17 | 'accounts-ui-angular.js', 18 | 'login-buttons-directive.js' 19 | ], 'client'); 20 | }); 21 | --------------------------------------------------------------------------------