Typescript conversion.
This commit is contained in:
parent
bda2c90e3d
commit
1e94109910
@ -1,4 +1,4 @@
|
|||||||
module.exports = function($resourceProvider) {
|
export function AccountConfig($resourceProvider) {
|
||||||
// Keep trailing slashes to avoid redirect by flask.
|
// Keep trailing slashes to avoid redirect by flask.
|
||||||
$resourceProvider.defaults.stripTrailingSlashes = false;
|
$resourceProvider.defaults.stripTrailingSlashes = false;
|
||||||
};
|
};
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
module.exports = function($resource) {
|
export function AccountFactory($resource) {
|
||||||
return $resource(
|
return $resource(
|
||||||
'/api/account/:id', {
|
'/api/account/:id', {
|
||||||
id: '@id'
|
id: '@id'
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
module.exports = function($resource) {
|
export function AccountBalancesFactory($resource) {
|
||||||
return $resource(
|
return $resource(
|
||||||
'/api/account/:id/balances', {
|
'/api/account/:id/balances', {
|
||||||
id: '@id'
|
id: '@id'
|
||||||
|
@ -17,17 +17,19 @@
|
|||||||
*/
|
*/
|
||||||
/* jshint node: true */
|
/* jshint node: true */
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var angular = require('angular');
|
var angular = require('angular');
|
||||||
|
|
||||||
|
//declare var angular: angular.IAngularStatic;
|
||||||
|
import { downgradeInjectable } from '@angular/upgrade/static';
|
||||||
|
|
||||||
var ngResource = require('angular-resource'),
|
var ngResource = require('angular-resource'),
|
||||||
ngMessages = require('angular-messages'),
|
ngMessages = require('angular-messages'),
|
||||||
ngUiNotification = require('angular-ui-notification'),
|
ngUiNotification = require('angular-ui-notification'),
|
||||||
ngStrap = require('angular-strap');
|
ngStrap = require('angular-strap');
|
||||||
|
|
||||||
var AccountFactory = require('./account.factory');
|
import { AccountFactory } from './account.factory';
|
||||||
var AccountBalancesFactory = require('./accountBalances.factory');
|
import { AccountBalancesFactory } from './accountBalances.factory';
|
||||||
var AccountConfig = require('./account.config');
|
import { AccountConfig } from './account.config';
|
||||||
import { AccountController } from './account.controller';
|
import { AccountController } from './account.controller';
|
||||||
|
|
||||||
export default angular.module('accountant.accounts', [
|
export default angular.module('accountant.accounts', [
|
||||||
|
Loading…
Reference in New Issue
Block a user