📜 ⬆️ ⬇️

COLT 2.0 Recompiling DOM as Directive Changes

In the latest update of COLT 2.0 Beta 7, we added another new feature for Angular.js

Now when you change the function that describes your Angular directive, the directive will be updated in the DOM (re-compiled).

Watch the video demonstration:


')
Please note that the template must be wrapped in a function, we cannot reach the line in the depths of Angular, we use our livecoding mechanism to replace the implementation of functions. In order for live delivery to work, a small refactoring of the template field in the directive is necessary.

website: colt.io

Source: https://habr.com/ru/post/219473/


All Articles