angular-blockly
angular-blockly copied to clipboard
generate code
What is the best way to get the resulting javascript code (not the JSON definitions) from the workspace using angular-blockly?
Did you get an answer ? Did you find out how to do it ? Thanks
This is how it is done for JavaScript Blockly.onChange(function (workspace) { this.Blockly.JavaScript.addReservedWords('code'); var code = this.Blockly.JavaScript.workspaceToCode(workspace); }); }, 0);