In my html, I used pipe
{{dat.url.split(":")[1]|slice:2}}
(Template file).This is how I showed the data from the database.
The DB data is like http://192.168.103.42:8888.
But I should show the data like 192.168.103.42 from this.
The problem is, when the user selects the edit option, by default it should show their saved data. For that I have to again use this
dat.url.split(":")[1]|slice:2
in my .ts file(form field).
But it shows error in slice:2
How to use slice inside .ts file in angular?