Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<meteor-include src="loginButtons"></meteor-include> does not work #707

Closed
nigel-dewar opened this issue Sep 25, 2015 · 10 comments
Closed

Comments

@nigel-dewar
Copy link

Hi There

Not sure why, but since meteor 1.2 meteor-include directive displays nothing.

@Urigo
Copy link
Owner

Urigo commented Sep 25, 2015

Yes, it has been deprecated in favor of blaze-template: http://angular-meteor.com/api/blaze-template
You only need to do:

meteor add urigo:angular-blaze-template

<blaze-template
    name="loginButtons">
</blaze-template>

@Urigo Urigo closed this as completed Sep 25, 2015
@nigel-dewar
Copy link
Author

Thanks Uri,

My bad. You do have thus in your instructions here

http://angular-meteor.com/tutorials/angular1/user-accounts-authentication-and-permissions

but just so you know in code snippet, 8.1 the old method is still included as well.

Cheers bro. love your work.

From: Uri Goldshtein [mailto:notifications@github.com]
Sent: Friday, 25 September 2015 8:45 PM
To: Urigo/angular-meteor angular-meteor@noreply.github.com
Cc: nigel-dewar nigeldewar@live.com
Subject: Re: [angular-meteor] does not work (#707)

Yes, it has been deprecated in favor of blaze-template: http://angular-meteor.com/api/blaze-template
You only need to do:

meteor add urigo:angular-blaze-template



Reply to this email directly or view it on GitHub #707 (comment) . https://github.com/notifications/beacon/AI94WAdfLTrX54VNP0MmowhTQQ4EMWSuks5o1QD8gaJpZM4GDliv.gif

@Urigo
Copy link
Owner

Urigo commented Sep 28, 2015

@nigel-dewar thanks! I've just fixed the tutorial and pushed a new update.

@torayeff
Copy link

torayeff commented Nov 5, 2015

not sure why but when I include and press it the dropdown does not show the login menu. Instead {{> loginButtons}} just works fine. Maybe there is issue in meteor 1.2.1?

@Urigo
Copy link
Owner

Urigo commented Nov 5, 2015

@torayeff it might be the new urigo:angular-blaze-template package version.
Try to downgrade to 0.0.1 for now and let me know if that helped

@torayeff
Copy link

torayeff commented Nov 6, 2015

@Urigo yes the problem was with the new version. I downgraded and now it is fine. But after updating angular package (1.0.4 => 1.0.5) I started receiving this error in browser console:
update failed: Access denied. In a restricted collection you can only update documents, not replace them. Use a Mongo update operator, such as '$set'.

I am following angular-meteor tutorial, step 8.

@Urigo
Copy link
Owner

Urigo commented Nov 6, 2015

@torayeff can you share your code in a repo?

@torayeff
Copy link

torayeff commented Nov 7, 2015

Now everything is working for me with angular package 1.0.6 and urigo:angular-blaze-template package 0.1.1. Thanks.

@torayeff
Copy link

Hi @Urigo . For this:

$stateProvider
  .state('parties', {
    url: '/parties',
    templateUrl: 'parties-list.html',
    controller: 'PartiesListCtrl'
  })
  .state('partyDetails', {
    url: '/parties/:partyId',
    templateUrl: 'party-details.html',
    controller: 'PartyDetailsCtrl'
  });

If I provide templateUrl: 'client/parties/views/parties-list.html', I receive this error:
WARNING: Tried to load angular more than once.

My repo is here https://github.com/torayeff/angular-meteor-bootstrap

@Urigo
Copy link
Owner

Urigo commented Dec 9, 2015

Looks like a typo in path or a caching problem.
The caching problem should be solved in the new 1.3 version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants