superdesk / ng-sir-trevor

Sir Trevor Angular services and directive, to work better with sir in ng enviroment.
GNU General Public License v3.0
4 stars 6 forks source link

Double binding data? #10

Open markwpearce opened 9 years ago

markwpearce commented 9 years ago

Take a look at:

https://github.com/markwpearce/ng-sir-trevor

I've continued with just using version 0.4.3 of Sir Trevor (I think they're going to release v5 soon, which will have a block_manager), and I made the editor get(), set() and clear() functions work with it.

I've also taken a stab at directly binding the data of the SirTrevor form, so it can be used in a "live update" way, sort of like a regular input control in Angular.

If you check out my fork, you can also run:

gulp watch

and go to http://localhost:3000/example to see it in action.

I can put some (or all) of these changes into a pull request. Please note, this is not directly backwards compatible, because I changed the scope signature of the ng-sir-trevor directive.