The Angular feature $watch has become known for its tendancy to hog memory, so we’ve been avoiding it wherever we can. However, with Components, the fact that you may only have a few bound values makes it much more necessary to have a watch on a value. There is a very easy way to do this.
Angular Components with Bound Functions Using Typescript
A part we got stuck on recently was regarding binding functions to the component from the parent controller. Each component can have its own controller, so you can put all sorts of nice events within the controller, but sometimes you need to access a tool from outside. Here’s how (and why) we did this.
Writing Angular Controllers in Typescript for Kendo Grids – Dealing with Data
Telerik offers a fantastic library called Kendo UI. They’ve converted all of the objects into Angular Directives. They’re great, except there are some issues that really arise from the actual platform. Angular is very data-centric. You don’t pick an object and then change it, as you do in jQuery, you define the parameters of the object as variables and then let the data do the work naturally.
Using Kendo ObservableArray’s lets us avoid unnecessary constructs that just don’t ever seem to work out for us in AngularJs.
- « Previous Page
- 1
- …
- 12
- 13
- 14
- 15
- 16
- …
- 24
- Next Page »