aurelia and .net

30
Aurelia ( + .NET CORE) @MR_SEAN_HUNTER (PCA PREDICT)

Upload: sean-hunter

Post on 10-Feb-2017

560 views

Category:

Software


0 download

TRANSCRIPT

Page 1: Aurelia and .NET

Aurelia( + .NET CORE)

@MR_SEAN_HUNTER (PCA PREDICT)

Page 2: Aurelia and .NET

Agenda

What is Aurelia?Why Aurelia?Up and Running with Aurelia

& .NET Core

Page 3: Aurelia and .NET

What is Aurelia

Next Generation SPA Framework

Page 4: Aurelia and .NET

Next Generation Web Framework

Component based developmentModern JavaScriptModern web standards

Page 5: Aurelia and .NET

What is Aurelia

MVVM (Model View View Model) Architecture

Page 6: Aurelia and .NET

MVVM

view-model.htmlview-model.js

Page 7: Aurelia and .NET

What is Aurelia

Based on Simple and easy to change conventions

Page 8: Aurelia and .NET

Why Aurelia?

Page 9: Aurelia and .NET

Why Aurelia – Developer Happiness!

A consistent binding syntax

Page 10: Aurelia and .NET

Why Aurelia – Rob Eisenberg

Created:

• Caliburn (WPF & Silverlight MVVM Framework)• Caliburn Micro (WPF & Silverlight MVVM

Framework)• Durandal (1st Generation SPA Framework)• Aurelia (2nd Generation SPA Framework)

Page 11: Aurelia and .NET

Getting Started - JSPM

npm install jspm –gjspm init

Page 12: Aurelia and .NET

Getting Started – Aurelia

jspm install aurelia-frameworkjspm install aurelia-bootstrapper

Page 13: Aurelia and .NET

Modify the Babel Options

babelOptions: { "optional": [ "runtime",

"optimisation.modules.system", "es7.decorators", "es7.classProperties"

] },

Page 14: Aurelia and .NET

Aurelia Todo

Page 15: Aurelia and .NET

Aurelia Component Lifecycle

activate()bind()attach()

deactivate()unbind()detach()

Page 16: Aurelia and .NET

Singletons

Every injected non-view model class is treated as a singleton.* Can be overridden with transient decorator

Page 17: Aurelia and .NET

Aurelia Demo - Routing

Page 18: Aurelia and .NET

Aurelia Demo – Ajax

Page 19: Aurelia and .NET

Aurelia Demo – Value Converters

view.html

date-format.js

Page 20: Aurelia and .NET

Aurelia Demo - Deployment

Because we don’t have HTTP2 yet, we need to bundle.

gulp bundle

http://blog.durandal.io/2015/09/11/bundling-aurelia-apps/

Page 21: Aurelia and .NET

SPA Data Flow

Two way data-binding or Unidirectional dataflow?

-- Why not both?

Page 22: Aurelia and .NET

Aurelia & Unidirectional Data-flow

contact-list.js

contact-details.js

Page 23: Aurelia and .NET

Web Components?

Now: Aurelia supports web components. This means polymer components can be used with Aurelia today.

Future: Ability to export Aurelia component for use as a web component (standalone).

Page 24: Aurelia and .NET

Performance

Current benchmarks show rendering speed of 2x Angular and React

Page 25: Aurelia and .NET

Performance

Micro-task Queue rather than Virtual DOM

Page 26: Aurelia and .NET

Is it solid?

Backed by Durandal Inc.Commercial Support Available.15 developer team distributed around the world.

Page 27: Aurelia and .NET

Browser Support

Evergreen browsersIE9 & IE10

Page 28: Aurelia and .NET

4 months in, any shortcomings?

Very new stuff.Documentation a work in progress.Lack of 3rd Party Tools

Page 29: Aurelia and .NET

Conclusion

Easiest way to get started?

npm install –g yoyo aurelia

Page 30: Aurelia and .NET

Contact Details

Sean Hunter, Software Developer @ PCA PredictTwitter: @mr_sean_hunterEmail: [email protected]: http://sean-hunter.io/