110 likes | 219 Views
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
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!