mardi 7 mars 2017

What is '+' the means in angluar2 (or javascript?)?

There is a line of code in angular2.

this.id = +this.route.snapshot.params['id'];

What is the "+" means before "this.route.snapshot.params['id']"?

I also see "+" added before a folder name such as "+detail" in angular2-webpack-starter.

Are they have the same meaning?




Aucun commentaire:

Enregistrer un commentaire