-
Notifications
You must be signed in to change notification settings - Fork 172
Form elements? #37
Comments
Briefly, the browser will see the following structure when the directive is compiled and linked:
Is there a reason why you want to use the directive on a textarea? |
Thanks- this helped resolve an issue for me. I was also trying to use |
@slopjong I had copied the sample code incorrectly in the issue I filed. I just wanted to know if |
@andrewboni @davisford this doesn't come from
On this page I use the following structure.
In the form I use a textarea and the nested
[offtopic] |
@slopjong thanks for the clarification. i've never used ace before, so am not familiar with how it works. re: angular json editor -- looks like neat implementation; i wonder if i wouldn't rather just type json in to save time, though? |
@davisford the angular json editor has schema support, it's more than just writing bare json. If you specify a schema file and disable the text editor people can compose a json with the tree editor by adding the fields in a certain level that are supposed to be added on that one. The example you saw has a default schema loaded but e.g. on the spaceapi page this schema will be loaded in the future so that endpoint maintainers are much faster in adding new fields while a certain quality is guaranteed. Wrong endpoint implementations lead to bug reports which are none. |
Cool -- I have an immediate need for json schemas, but on the server side; I'm using Apache Avro -- have you looked at Avro? It works quite well, language independent, and has binary compression support -- but probably not much use in an Angular environment. I want to take a look at the angular json editor, it may prove useful in some capacity on a project I'm working on, and perhaps I can send some PRs. |
@davisford I opened a new issue where we can continue the discussion about the angular json editor. |
Does Ace work with other elements besides
<div>
? I've got something like this:...which shows the ace editor in the div, as expected. But if I just change it to this:
I can't even load the page -- Chromium tab will just hang, and eventually crash.
EDIT: sorry, I copied the sample code in incorrectly -- fixed now.
The text was updated successfully, but these errors were encountered: