Fix export and import.

This commit is contained in:
Alexis Lahouze 2017-07-21 23:06:10 +02:00
parent cc5b0b1ee1
commit a398752c0c
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -1,4 +1,4 @@
module.exports = function($resource) {
export function ScheduleFactory($resource) {
return $resource(
'/api/scheduled_operation/:id', {
id: '@id'