Laurent Duveau April 25th, 2017
@LaurentDuveau angular.ac/blog MVP, RD I live in Montreal Founder of the Angular Academy 2-day Angular Classroom Training 58 classes in the last 18 months Montreal, Boston, Quebec, Ottawa, Toronto,Vancouver, Calgary, London, Copenhagen, … April 26-27!
TypeScript Setup and Tooling Angular
THIS TALK IS ABOUT…
.NET Developer
ANGULAR IS BUILT USING TYPESCRIPT
TypeScript is a typed superset of JavaScript that compiles to plain JavaScript You can combine Javascript with Typescript Any browser. Any host. Any OS It is a Microsoft Technology, Open Source From the creator of C# 10
Wait…
I hate JavaScript… TypeScript is here to help! .NET Dev Mom
18
19
20 > npm install XYZ
21
Getting started faster! 22 > npm install -g @angular/cli > ng new DemoAngular > ng serve cli.angular.io
THE ANGULAR CLI MAKES IT EASY TO CREATE AN APP THAT WORKS AND FOLLOWS BEST PRACTICES, RIGHT OUT OF THE BOX.
There’s a new kid in town! VS Code… a code editor, not an IDE Free, Open Source Windows, Mac, Linux! HTML5, CSS, LESS, JavaScript or C# with NodeJs, ASP.NET, … Rich code editor from VS in a fast and lightweight tool Debug, deploy Git integration Extensions code.visualstudio.com
DEMONSTRATION
JavaScript Framework especially suitable for single-page modern web applications (Single Page Application, or SPA) Compatible with Internet Explorer 9+ and others modern browsers Open Source, MIT license www.angular.io
* based on v2 architecture released in September 14, 2016 Angular 4.0.3! *
29 JavaScript, HTML, CSS, … Angular is here REST API, ASP.NET, C#, … Your DB is there! Where is TypeScript ?
Components Modules Dependency Injection Language (TypeScript) Services Data Binding Decorators Routing
Header Component Menu Component Footer Component List ComponentGrid Component
YOUR APP IS A TREE OF COMPONENTS
Map Update App DetailsList ProductsMenu Contact
A component is a reusable object Made up of: HTML Template Code (ts class)
DEMONSTRATION
Visual Studio 2015 QuickStart http://tinyurl.com/jmhv9h8 Angular setup with VS 2015 and ASP.NET 4 http://tinyurl.com/h2n82v8 ASP.NET Core + Angular template for VS http://tinyurl.com/jnoqwfs Deploy an Angular/ASP.NET Core App to Azure http://tinyurl.com/he4g8lb 39
Thank you!
Introduction to Angular for .NET Developers
Introduction to Angular for .NET Developers

Introduction to Angular for .NET Developers