Skip to content

Commit cbe648c

Browse files
committed
Update README.md
1 parent 8806056 commit cbe648c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,14 @@ Usage
1515
* $scope.$emit('hide error'); // to hide error msg
1616
* $scope.$emit('show success'); // to show success msg
1717
* $scope.$emit('hide success'); // to hide success msg
18+
19+
You need to keep all your error messages in a JSON file 'errors_list.json'. e.g.
20+
```
21+
{
22+
"INVALID_DATE" : "Please enter a valid date",
23+
"username_not_found" : "Sorry, This username is already taken"
24+
}
25+
```
26+
27+
Uppercase error messages represent errors comming from server while lowercase error messages represent
28+
errors from client side.

0 commit comments

Comments
 (0)