When it comes to a modern web application, there is a high chance you will be working with a form or three. Fortunately Aurelia gives us straightforward and flexible ways of working with form elements and data.
Below are some common scenarios in which you might find yourself working with forms in Aurelia. All relatively straightforward, using concepts you are probably already familiar with from other frameworks like Angular.
Checkboxes I have seen a little bit of confusion when it comes to working with checkbox elements in Aurelia. Once you understand what each role the binding behaviours play, you realise it is all quite straight forward.
When it comes to raising money, there are not many apps that can attract as much capital and interest as Uber can. A Techcrunch story suggests Uber are looking to raise another $1 billion funding round (yes, that is one billion dollars).
A mere 3 months ago, Uber raised a $1b round and they’re set to do it again. This would place their valuation between $60 billion and $70 billion respectively.
You are already aware of the fact React.js is fast, but did you know there is a way to speed up the rendering of React components even more?
Say hello to my little friend PureRenderMixin
The PureRenderMixin does a shallow comparison on our props and state values. It compares the existing value of prop or state to new values.
Behind the scenes the PureRenderMixin is extending the lifecycle method shouldComponentUpdate. It determines if the render method is callable and your component will re-render.
One source of confusion when working with AJAX requests and Aurelia is whether you should use the aurelia-http-client or aurelia-fetch-client both achieve similar things. However at the time of writing this no official documentation that exists for using the Fetch Client or explains how to use it.
I have been using the Fetch client since it debuted and realised others wanting to migrate to the Fetch client might find this post useful.
So you’ve decided it’s time to join the future and port your existing Angular application to Aurelia. Your first port of call was probably the documentation and chances are you probably got confused, because Aurelia lacks the concept of a “directive” – don’t be discouraged my friend, there is light at the end of the tunnel.
The concept of directives do exist in Aurelia, however they go by the names: Custom Attribute and Custom Element. In Angular 1.x, a directive can both be a custom attribute and a custom element. It is a confusing concept that fortunately has been removed in Angular 2.
It seems anything remotely written in or affiliated with Javascript gets compared with Angular these days.
AngularJS vs React.js AngularJS vs Node.js AngularJS vs Ember.js AngularJS vs Microwave AngularJS vs PHP AngularJS vs jQuery AngularJS vs Bear Grylls AngularJS vs AngularJS One thing I see being compared a lot is Angular and Meteor. Whoa. Hold on just a second there.
Let us all just take a step back here for a moment. Angular and Meteor are not the same. They’re not even in the same league. Angular is a roller derby and Meteor is the stadium. While Angular can be used inside of Meteor and Meteor can be used in place of Angular, they are not the same.
As much as I love working with Aurelia, the documentation can be confusing for newcomers to the framework (forgivable considering it is so new and evolving). The purpose of this post is to quickly touch upon ViewModel methods that get called at various parts of the ViewModel activation process.
The two methods I have found myself using the most are attached and detached as sadly a project I am working on still uses jQuery libraries like Select2 for creating custom styled dropdowns.
One of my favourites parts of Aurelia is the compose element which allows you to dynamically render UI into the DOM. It is especially handy in situations where you want to dynamically render ViewModels inside of a loop like widgets or other dynamically composed elements.
Containerless One of the lesser known features of the compose element is the ability to specify a containerless attribute on the element. By default if you use the compose element your page will feature the element with the rendered contents inside.
I love freshly baked sliced bread. I don’t know of anyone who doesn’t love sliced bread, except maybe people who can’t have gluten or anything else found in bread.
Which reminds me, how overrated is Jarryd Hayne? Don’t answer that. It’s a rhetorical question.
Because he is a former NRL (National Rugby League) star here in Australia, the media clings on and hypes him up like he is a member of the Kardashian family.
I know you’re probably stunned right now, perhaps even in a little state of shock hearing that. But it is true: I don’t really like Star Wars all that much.
There are only a handful of movie franchises that can pull a dedicated following like Star Wars has. In-fact, I can’t think of another movie series that even comes close to rivalling it. There are conventions, tonnes of merchandise, games and basically anything that can have branding on it probably comes in a Star Wars variant.