import { Component } from "@angular/core" ; import { DataService } from "../services/DataService" ; import { MdtCellAlign } from "../directives/mdt-cell-align.directive" ; import { ArrayPaginationService } from "../services/ArrayPaginationService" ; import { IColumn } from "../interfaces/IColumn" ; import { SortService } from "../services/SortService" ; @ Component ( { selector : '[mdt-columns]' , templateUrl : '../views/mdt-columns.html' , } ) export class MdtColumns { constructor ( public dataService , public arrayPaginationService , public sortService ) { } setColumnOrder ( aColumn ) { this . sortService . setColumnToSort ( aColumn ) ; } }