Cargando…

Learning AngularJS for .NET Developers /

In Detail AngularJS is the most popular JavaScript MVC framework, and it embraces and extends HTML rather than abstracting it. The building of single-page applications is a web-designer-friendly process with the AngularJS expressive HTML vocabulary. It drastically reduces the amount of JavaScript re...

Descripción completa

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Pop, Alex
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Birmingham : Packt Publishing, 2014.
Colección:Community experience distilled.
Temas:
Acceso en línea:Texto completo
Tabla de Contenidos:
  • Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Introducing AngularJS; Presenting AngularJS with examples; A jQuery example; An AngularJS example; Introducing the AngularJS controller; An overview of the AngularJS architecture; The Model-View-Controller pattern; The structure of an AngularJS application; Bootstrapping an AngularJS application; Defining module dependencies; The JavaScript patterns and practices used in AngularJS applications; Immediately-invoked Function Expression; The revealing module pattern.
  • The strict mode of JavaScriptDependency injection; Introducing AngularJS services; Directives; The ngRepeat directive; The ngInclude directive; Creating a custom directive; Filters; Summary; Chapter 2: Creating an AngularJS Client-side Application in Visual Studio; Using Visual Studio with NuGet to manage AngularJS and related libraries; Introducing NuGet; Using Visual Studio extensions for AngularJS; Prototyping client-side components; Organizing client-side code; Integrating AngularJS with JavaScript libraries; Native JavaScript libraries and AngularJS.
  • Third-party user interface libraries and AngularJSRouting; Creating a bicycle rental management application; Creating the application layout; Implementing the Bicycles views; The Bicycles index view; The Bicycles new view; The Bicycles edit view; Implementing the Customers views; Implementing the Rentals views; Summary; Chapter 3: Creating .NET Web Services for AngularJS; RESTful web services; Choosing a RESTful web services framework; Why ServiceStack is a great fit for AngularJS; ServiceStack overview; Setting up the ServiceStack starter project; Creating ServiceStack web services.
  • Using the ServiceStack C# clientThe ServiceStack infrastructure; Routing; Request and response filters; Dependency injection; Automatic validation; Creating web service methods for the sample application; ServiceStack project structure; Implementing Bicycles-related web services; The GET web service methods; The POST web service method; The PUT web service method; Merging PUT and POST request DTOs; Calling RESTful web services in AngularJS using the ngResource module; Using the resource service; Resource class methods; Resource instance methods; Custom resource methods; Summary.
  • Chapter 4: Creating an AngularJS, ASP.NET MVC, ServiceStack ApplicationUsing ASP.NET MVC as the application backbone; Why you should use ASP.NET MVC; Adding ASP.NET MVC to the main sample application; Integrating ASP.NET MVC with ServiceStack; Routing considerations for ASP.NET MVC and AngularJS; Using ASP.NET bundling and minification features for AngularJS files; Securing the AngularJS application; Using the ServiceStack. Mvc library; The building blocks of the ServiceStack security infrastructure; Introducing the AuthFeature plugin; Implementing authentication for web services.