Fix export and import.
This commit is contained in:
parent
cc5b0b1ee1
commit
a398752c0c
@ -25,7 +25,7 @@ var ngMessages = require('angular-messages'),
|
|||||||
ngStrap = require('angular-strap');
|
ngStrap = require('angular-strap');
|
||||||
|
|
||||||
var ScheduleController = require('./schedule.controller');
|
var ScheduleController = require('./schedule.controller');
|
||||||
var ScheduleFactory = require('./schedule.factory');
|
import { ScheduleFactory } from './schedule.factory';
|
||||||
|
|
||||||
export default angular.module('accountant.scheduler', [
|
export default angular.module('accountant.scheduler', [
|
||||||
ngMessages,
|
ngMessages,
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
module.exports = function($resource) {
|
export function ScheduleFactory($resource) {
|
||||||
return $resource(
|
return $resource(
|
||||||
'/api/scheduled_operation/:id', {
|
'/api/scheduled_operation/:id', {
|
||||||
id: '@id'
|
id: '@id'
|
||||||
|
Loading…
Reference in New Issue
Block a user