- Détails
- 2623
Many tools can retrieve names from anonymous emails. But to get something clean, avoid errors and keep a custom default value for generic emails, better to do it yourself.
First, description of the problem.
Tag name
Here we concatenate salutation, first and last names from a table called users
, in a tag called name
. This in order to personalize newsletters, example:
Salutation | First name | Last name | HTML | View in mailbox and browser |
Mr | Edward | Osborne Wilson |
<span>Dear [name]</span> |
Dear Mr Edward Osborne Wilson |
OK good. But sometimes we have not all salutation, first and last names. And may we get a strange value even with all 3 fields concatenated:
Recover names from anonymous email addresses avoiding errors
- Détails
- 3023
Créer un projet (avec du SCSS et en skipant les tests)
ng new mon-projet-angular --style=scss --skip-tests=true
Utiliser Bootstrap avec Angular
npm install bootstrap@3.3.7 --save
Puis modifiez angular-cli.json ou angular.json comme suit
"styles": [
"node_modules/bootstrap/dist/css/bootstrap.css",
"styles.scss"
]
Lancer le serveur Nodejs
Placez-vous dans le répertoire contenant votre projet, puis :
ng serve
Puis rendez-vous à l'adresse localhost:4200
Couper le serveur Nodejs
Ctrl + C
Page 4 sur 4