From a398752c0c8e3414ebdd1a319ba73742173e2623 Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Fri, 21 Jul 2017 23:06:10 +0200 Subject: [PATCH] Fix export and import. --- src/scheduler/index.ts | 2 +- src/scheduler/schedule.factory.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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'