Typescript: Data Bind Between Service And Controller Such That Utilization Of Variable Is Simple
Since value assignment doesn't bind data, this -> this.arrayVal = someService.arrayVal doesn't work. Is there a way to overcome this? The goal here is to keep the assignment sim
Solution 1:
Ctrl.arrayVal instead of Ctrl.someService.arrayval
You can just put someService
directly on the scope. Then use someService.arrayVal
in html and controller.
Post a Comment for "Typescript: Data Bind Between Service And Controller Such That Utilization Of Variable Is Simple"