Search Posts

Category: angular-meteor

Meteor.userId() inside custom component not working properly on server, but it’s fine locally.

I am using Meteor and Angular, and am having a hard time making my admin-specific code function properly. Locally, it works great, but once I use meteor build and put it up on the server, my code doesn’t function, but I don’t see any errors either. Specifically, inside my /imports/components/storyAdmin.js file, I have the following method: this.isAdministrator = Meteor.call(‘users.isAdmin’, Meteor.userId(), function(error, result) { if (result) { _that.isAdministrator = result; _that.scope.$digest(); } }); The problem is, […]

Meteor – Using FS returns TypeError: Cannot read property ‘Collection’ of undefined

I am using Meteor 1.6 and AngularJS (Angular 1) and am having issues in my /server/main.js file. I am trying to do an import like this: import { FS } from ‘meteor/cfs:filesystem’; So Meteor is able to resolve it just fine, but the problem is, it is undefined somehow. So when I do this: Images = new FS.Collection(“images”, { I get the error mentioned above. I have been trying to find answers online and I’ve […]

Issue with angular version

I use Angular-Meteor with Meteor list: angular 1.3.11 angular-templates 1.0.3* angular:angular-animate 1.5.3_1 angular:angular-aria 1.5.3_1 angular:angular-material 1.0.6 angular:angular-messages 1.5.3_1 I would like to use angular material last version 1.1.4 therefore I use meteor npm install and my package.json is as follow: “angular”: “^1.6.5”, “angular-animate”: “^1.6.5”, “angular-aria”: “^1.5.8”, “angular-material”: “^1.1.4”, but when I import angualr material : import ngMaterial from ‘angular-material’; I get error on chrome : Uncaught TypeError: angular.module(…).info is not a function as I read […]