diff --git a/src/scheduler/index.ts b/src/scheduler/index.ts index a2fb9b3..a351aef 100644 --- a/src/scheduler/index.ts +++ b/src/scheduler/index.ts @@ -25,7 +25,7 @@ var ngMessages = require('angular-messages'), ngStrap = require('angular-strap'); var ScheduleController = require('./schedule.controller'); -var ScheduleFactory = require('./schedule.factory'); +import { ScheduleFactory } from './schedule.factory'; export default angular.module('accountant.scheduler', [ ngMessages, diff --git a/src/scheduler/schedule.factory.ts b/src/scheduler/schedule.factory.ts index aa00231..6e0be2b 100644 --- a/src/scheduler/schedule.factory.ts +++ b/src/scheduler/schedule.factory.ts @@ -1,4 +1,4 @@ -module.exports = function($resource) { +export function ScheduleFactory($resource) { return $resource( '/api/scheduled_operation/:id', { id: '@id'