JSFiddle - React, Tailwind, and code Playground
HTML
<div ng-app="app">
<div ng-controller="GeojsonController">
<textarea ng-model="geojson"></textarea>
<p>Geojson is: {{getJson(geojson) | json}} </p>
</div>
</div>
JavaScript
angular.module('app', [])
.controller('GeojsonController', ['$scope', function($scope) {
$scope.geojson = '{"type": "FeatureCollection"}';
$scope.getJson = function(){
return JSON.parse($scope.geojson);
}
}]);