3 ms·
Show HN: a partial markdown implementation with angular.js
Because this just uses angular.js templates, the HTML is sanitized, and only the DOM nodes that represent data that's changed are manipulated while editing the markdown source.
This is also an example of how partial templates have access to variables and how the variables can be set with ng-init before including the template with ng-include.
- benatkin 13y agoBecause this just uses angular.js templates, the HTML is sanitized, and only the DOM nodes that represent data that's changed are manipulated while editing the markdown source. This is also an example of how partial templates have access to variables and how the variables can be set with ng-init before including the template with ng-include.