Email template generator build in Angularjs