errorType is not showing when calling with Alert.showAlert("success","someMsg");from another Component but it's working when initializing at the declaration of errorType itself.
component :
 import {Component} from 'angular2/core';
    @Component({
        selector: 'alert-component',
        templateUrl: 'app/alert.template.html'
    })
    export class Alert {
     public static errorType:string;
     public static messageAlrt:string;
     public static showAlert(type:string, message:string): void{
          Alert.errorType=type;
        }
    }
template :
<div id="messageAlert" >
            <strong>{{errorType}}:</strong> this is the error message at top of the page      
        </div>
Really apreciate your help in resolving this problem that errrorType value is not getting bound to erroType
 
     
    