message: Review changes on app.list.component.ts file - Fixing code formating and improving implementation
diff: -import { Component, EventEmitter, Output } from '@angular/core';
  +import {Component, EventEmitter, Output, OnInit} from '@angular/core';
  import {FlogoModal} from '../../../common/services/modal.service';
  import {IFlogoApplicationModel} from '../../../common/application.model';
  import {TranslateService} from 'ng2-translate/ng2-translate';
  @@ -11,7 +11,7 @@ import { RESTAPIApplicationsService } from '../../../common/services/restapi/app
  templateUrl: 'app.list.tpl.html',
  styleUrls: ['app.list.css']
  })
  -export class FlogoAppListComponent {
  +export class FlogoAppListComponent implements OnInit {
  @Output() onSelectedApp: EventEmitter<IFlogoApplicationModel> = new EventEmitter<IFlogoApplicationModel>();
  @Output() onAddedApp: EventEmitter<IFlogoApplicationModel> = new EventEmitter<IFlogoApplicationModel>();
  @Output() onDeletedApp: EventEmitter<IFlogoApplicationModel> = new EventEmitter<IFlogoApplicationModel>();
  @@ -23,6 +23,9 @@ export class FlogoAppListComponent {
  constructor(public flogoModal: FlogoModal,
  public translate: TranslateService,
  private apiApplications: RESTAPIApplicationsService) {
  + }
  +
  + ngOnInit() {
  this.listAllApps();
  }
  @@ -43,10 +46,9 @@ export class FlogoAppListComponent {
  onAdd(event) {
  this.apiApplications.createNewApp()
  .then((application: IFlogoApplicationModel) => {
  - this.listAllApps();
  this.onAddedApp.emit(application);
  this.onSelectApp(application);
  - });
  + }).then(() => this.listAllApps());
  }
  listAllApps() {
  @@ -64,7 +66,7 @@ export class FlogoAppListComponent {
  this.selectedApp = null;
  this.overApp = null;
  //this._router.navigate([ 'FlogoHomeComponent', {id: application.id} ]);
  - });
  + })
  }
  onMouseOver(app: IFlogoApplicationModel) {
  