Skip to content

Commit

Permalink
fix: apply feedback from janny
Browse files Browse the repository at this point in the history
  • Loading branch information
dhmlau committed Mar 27, 2020
1 parent b83c0b2 commit 8429463
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/site/Validation-controller-layer.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ area code of a phone number usually depends on the geolocation.
The simplest way is to apply the validation function in the controller method.
For example:

{% include code-caption.html content="/src/controllers/coffee-shop.controller.ts" %}

```ts
// create a validatePhoneNum function and call it here
if (!this.validatePhoneNum(coffeeShop.phoneNum, coffeeShop.city))
Expand Down

0 comments on commit 8429463

Please sign in to comment.