I am finding it difficult to prototype with Aurelia using online tools like Codepen and JSFiddle. I have been looking for low effort solutions that will allow me to simply include Aurelia’s binding engine and apply a viewmodel to a simple view.
This is relatively easy to achieve with every other framework so I am hoping that there is an easy way to do this with Aurelia:
It comes with a simple app view and view-model that allows you to play with Aurelia’s binding and so on. I’ve not tried to get this working with Codepen, but I imagine you should be able to simply copy the contents of the index.html file to get started.
I wrote sample code with codepen with reference to the benchmark code of js perfs which is used in the example showing the high performance of aurelia.
important point
use loader is requirejs.
I am importing modules related to all aurelia from cloudflare cdn.
aurelia cli are also used, it requires a text module
If you type in the text box and press the hello button, headline changes.
Press the world button to add a random number from 1 to 100 in the downward direction.
Press the remove button to delete the values added downward one by one.
Thanks. This is exactly what I was looking for today. I needed a single html file with that I could send around via email, but I could use already some basic data binding.
And believe me or not, even though I am an aurelia fan, I learned about vuejs just because of this.