I have textEditor in that if a user writes Javascript function on button click it should get validated (whether the syntax is correct or not) and should minify that code and it should be done with either Javascript or angularjs!! Does anybody know that?
This is my HTML code
<div class="col-xs-12 col-sm-5 col-lg-5 paddnone">
<textarea class="form-control" rows="5"></textarea>
<button class="btn btn-primary" ng-click="validateAndMinify()">Validate</button>