UNPKG
angular-jsf-components
Version:
latest (1.1.4)
1.1.4
1.1.3
1.1.2
1.1.0
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
JSF Compliant Angular Components
github.com/denny99/angular-jsf
denny99/angular-jsf
angular-jsf-components
/
src
/
objects
/
error-message.ts
10 lines
(8 loc)
•
263 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
export
class
ErrorMessage
{
constructor
(
public
hasError
?:
boolean
,
private
message
?:
string
) { }
setError
(
hasError
:
boolean
,
message
?:
string
) {
this
.
hasError
= hasError;
this
.
message
= message ||
'Error in the input field!'
; } }