Hello, I’m a MeteorJS/AngularJS newbie and I’m following the Meteor tutorial (https://www.meteor.com/tutorials/angular/collections) for the todos list application but there seem to be errors with the line: controller: ['$scope', TodosListCtrl]
as well the one with the export default angular ...
according to cmd the first/main error is at l.17 (imports/components/todosList/todosList.js:17:7: Unexpected token (17:7)
) of the following code in todoList.js:
import angular from 'angular';
import angularMeteor from 'angular-meteor';
import { Tasks } from '../../api/tasks.js';
import template from './todosList.html';
class TodosListCtrl {
constructor($scope) {
$scope.viewModel(this);
this.helpers({
tasks() {
return Tasks.find({});
}
})
}
export default angular.module('todosList', [
angularMeteor
])
.component('todosList', {
templateUrl: 'imports/components/todosList/todosList.html',
controller: ['$scope', TodosListCtrl]
});