File

core/forms/messages.component.ts

Metadata

Index

Properties
Methods
Inputs

Constructor

constructor(translateService: TranslateService)
Parameters :
Name Type Optional
translateService TranslateService No

Inputs

defaults
Type : object
Default value : ValidationPattern.messages
helpMessage
Type : string
Default value : ''
show
Type : object
Default value : {}

Methods

changeVisibility
changeVisibility(show: object)
Parameters :
Name Type Optional
show object No
Returns : void
ngAfterContentInit
ngAfterContentInit()
Returns : void
ngOnChanges
ngOnChanges()
Returns : void

Properties

customMessages
Type : QueryList<MessageDirective>
Decorators :
@ContentChildren(MessageDirective)
messageMap
Type : any
Default value : {}
messages
Type : []
Default value : []
<small class="form-control-feedback-message">
  <div
    class="d-block"
    *ngFor="let msg of messages"
  >
    {{ msg | translate }}
  </div>
  <div
    class="help-block"
    *ngIf="!messages.length && helpMessage"
  >
    {{ helpMessage | translate }}
  </div>
  <ng-content></ng-content>
</small>

results matching ""

    No results matching ""