Files
brewman/brewman/static/app/balance-sheet/balance-sheet.controller.ts
tanshu f3c1bfa57b - Started using TypeScript
- Using SystemJS as Module Loader
 - Auth and Permissions moved to Credentials.service from $rootScope
 - Toasts moved to Messages.service
 - Massive Changes
 - Sprint 1 done to move to Angular.io from AngularJS
 - Should be fully working!! :)
2018-05-15 00:11:28 +05:30

25 lines
690 B
TypeScript

export class BalanceSheetController {
static $inject = ['$scope', '$location', 'asDateFilter', 'uibDateParser'];
_info_Date: any;
foDate: boolean;
info: any;
constructor(public $scope, public $location, public asDate, public dateParser) {
this.info = $scope.$parent.res.info;
this._info_Date = dateParser.parse(this.info.Date, "dd-MMM-yyyy");
this.foDate = true;
}
info_Date(value) {
if (arguments.length) {
this.info.Date = this.asDate(value);
this._info_Date = value;
}
return this._info_Date;
}
show() {
this.$location.path('/BalanceSheet/' + this.info.Date);
}
}