lvbreda / Meteor_angularjs

279 stars 42 forks source link

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

Open gavriguy opened 11 years ago

gavriguy commented 11 years ago

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?

muvic08 commented 11 years ago

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

xiphias commented 11 years ago

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);