I want a function that modifies a variable e.g.:
private _buildUrlCategories(url: string) {
url += ";categories=" + this.findForm.value.categories;
}
private _buildUrl() {
let url = "/#/find";
this._buildUrlCategories(url); //now url should be bigger
}
If it can't be done then obviously I can just return the url and do url += this._buildUrlCategories(url)
.
Is this possible? Is this a technique that has a name?