I need help with a textEditor feature. I want users to be able to write Javascript functions, and when they click a button, the code should be validated for correct syntax and then minified. This functionality needs to be implemented using either Javascript or AngularJS. Does anyone have any suggestions?
Here is my HTML code:
<textarea ng-model="js" rows="5"></textarea>
<button class="btn btn-primary" ng-click="validateAndMinify(js)">Validate</button>