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

Missing import #155

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Missing import #155

wants to merge 1 commit into from

Conversation

saif-cl0ud
Copy link

The import @line 356 was missing and throwing an error. Due to this the party list is not getting displayed.
The File Name is partiesList.js
The updated code is below :

Added imports/ui/components/partiesList/partiesList.js
@@ -0,0 +1,27 @@
+┊  ┊ 1┊import angular from 'angular';
+┊  ┊ 2┊import angularMeteor from 'angular-meteor';
                  import { Parties } from '../../../../collections/parties';
+┊  ┊ 3┊
+┊  ┊ 4┊class PartiesList {
+┊  ┊ 5┊  constructor($scope, $reactive) {
+┊  ┊ 6┊    'ngInject';
+┊  ┊ 7┊
+┊  ┊ 8┊    $reactive(this).attach($scope);
+┊  ┊ 9┊
+┊  ┊10┊    this.helpers({
+┊  ┊11┊      parties() {
+┊  ┊12┊        return Parties.find({});
+┊  ┊13┊      }
+┊  ┊14┊    });
+┊  ┊15┊  }
+┊  ┊16┊}
+┊  ┊17┊
+┊  ┊18┊const name = 'partiesList';
+┊  ┊19┊
+┊  ┊20┊// create a module
+┊  ┊21┊export default angular.module(name, [
+┊  ┊22┊  angularMeteor
+┊  ┊23┊]).component(name, {
+┊  ┊24┊  templateUrl: `imports/ui/components/${name}/${name}.html`,
+┊  ┊25┊  controllerAs: name,
+┊  ┊26┊  controller: PartiesList
+┊  ┊27┊});

The import @line 356 was missing and throwing an error. Due to this the party list is not getting displayed.
The File Name is partiesList.js
The updated code is below :

##### Added imports/ui/components/partiesList/partiesList.js
```diff
@@ -0,0 +1,27 @@
+┊  ┊ 1┊import angular from 'angular';
+┊  ┊ 2┊import angularMeteor from 'angular-meteor';
                  import { Parties } from '../../../../collections/parties';
+┊  ┊ 3┊
+┊  ┊ 4┊class PartiesList {
+┊  ┊ 5┊  constructor($scope, $reactive) {
+┊  ┊ 6┊    'ngInject';
+┊  ┊ 7┊
+┊  ┊ 8┊    $reactive(this).attach($scope);
+┊  ┊ 9┊
+┊  ┊10┊    this.helpers({
+┊  ┊11┊      parties() {
+┊  ┊12┊        return Parties.find({});
+┊  ┊13┊      }
+┊  ┊14┊    });
+┊  ┊15┊  }
+┊  ┊16┊}
+┊  ┊17┊
+┊  ┊18┊const name = 'partiesList';
+┊  ┊19┊
+┊  ┊20┊// create a module
+┊  ┊21┊export default angular.module(name, [
+┊  ┊22┊  angularMeteor
+┊  ┊23┊]).component(name, {
+┊  ┊24┊  templateUrl: `imports/ui/components/${name}/${name}.html`,
+┊  ┊25┊  controllerAs: name,
+┊  ┊26┊  controller: PartiesList
+┊  ┊27┊});
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

Successfully merging this pull request may close these issues.

1 participant