110 likes | 226 Vues
Join Marko Tošić, a Microsoft Consultant, in this enlightening session about building Single Page Applications (SPAs) using AngularJS and ASP.NET. Explore the powerful features of AngularJS, such as MVC architecture, data binding, directives, and dependency injection. Learn how to efficiently develop RESTful services with ASP.NET WebAPI and integrate them seamlessly with AngularJS for a responsive web application. Discover tips for utilizing SignalR for real-time web communication and get insights into the latest in Visual Studio for enhanced development experiences.
E N D
Sofia Event Center 14-15 May 2014 Building a Single Page Applications using AngularJS and ASP.NET Marko Tošić Consultant, Microsoft marko.tosic@microsoft.com
What is AngularJS? • Google javascript front-end framework • • MVC • Model - data • View – “projection” of data • Controller – “glue” between model and view • SPA • Single Page Application framework • Dependency injection
AngularJS • Components and features • Directives • Scope • Module • Data binding • Filter • Expressions • Service • Dependency injection • Model • View • Controller
Visual Studio + AngularJS • Web essentials • “Playground” for new web functionalites and features who eventually end up in Visual Studio • Newest features and specifications (it’s possible to subscribe to nightly builds) • Intellisense • Possible with Web essentials • Currently in preview phase – still bugged
AngularJS + ASP.NET+ WebAPI • WebAPI • Framework for quick and easy development of HTTP web services • Ideal for building RESTful applications on .NET framework • AngularJS + REST • Easy consuming of REST services with $http or $resource • AngularJS + ASP.NET • SPA (single HTML) • mini-SPA (Angular+ASP.NET MVC)
AngularJS + SignalR • “Real time” web • Web sockets • Two way communication between client and server • Consensus application(demo)
Without real-time Got Data? Got Data? Got Data? Got Data? Client Browser WebServer Here’s some data! Got Data? Got Data? Got Data? Got Data?
With real-time I do real time, do you? Client Browser WebServer Absolutely! Let’s Do This!
Basically… Client Browser SignalR!!! WebServer
AngularJS pros and cons • Pros • Supports “good” application architecture – SoC, loosely coupled, testable • Complete framework • Easy to use • Cons • Debugging • Intellisense support* • Minification (depending on syntax) • *much better Intellisense support for AngularJS within Visual Studio should be released soon
Questions??? Share your feedback for this particular session and for the overall conference experience at http://aka.ms/intouch for a chance to win our prizes!