Meteor_angularjs icon indicating copy to clipboard operation
Meteor_angularjs copied to clipboard

How can I use the accounts-ui package with the Angularjs package?

Open gavriguy opened this issue 12 years ago • 2 comments

To add the account-ui on the page on a normal meteor app I just need to add v to the HTML, How do I do the same with Angular enabled?

gavriguy avatar Feb 14 '13 15:02 gavriguy

I am having the same problem too. To circumvent the issue, I am using http://blog.benmcmahen.com/post/41741539120/building-a-customized-accounts-ui-for-meteor in the meantime

muvic08 avatar May 28 '13 14:05 muvic08

I have a partially working solution by rendering the accounts-ui template:

Install accounts-ui dropdown

mrt add  accounts-ui-bootstrap-dropdown

Add this to the template:

<div id="loginTemplate"></div>

And add this to the controller:

Coffeescript version:

loginTemplateChild = Meteor.render () ->
    Template._loginButtons()
$('#loginTemplate')[0].appendChild(loginTemplateChild)

Javascript version:

loginTemplateChild = Meteor.render(function() {
  return Template._loginButtons();
});

$('#loginTemplate')[0].appendChild(loginTemplateChild);

xiphias avatar Jul 28 '13 20:07 xiphias