Closed flawlite closed 7 years ago
I have followed step by step carefully but still throw this error. Whats wrong here?
`import angular from 'angular'; import angularMeteor from 'angular-meteor';
import template from './partiesList.html';
class PartiesList { constructor($scope, $reactive) { 'ngInject';
$reactive(this).attach($scope); this.helpers({ parties() { return Parties.find({}); } });
} }
const name = 'partiesList';
// create a module export default angular.module(name, [ angularMeteor ]).component(name, { template, controllerAs: name, controller: PartiesList }); `
I think for now add import { Parties } from '../../../../collections/parties'; will fix it.
import { Parties } from '../../../../collections/parties';
I have followed step by step carefully but still throw this error. Whats wrong here?
`import angular from 'angular'; import angularMeteor from 'angular-meteor';
import template from './partiesList.html';
class PartiesList { constructor($scope, $reactive) { 'ngInject';
} }
const name = 'partiesList';
// create a module export default angular.module(name, [ angularMeteor ]).component(name, { template, controllerAs: name, controller: PartiesList }); `