background preloader

AngularJS

Facebook Twitter

Introduction à AngularJS. Introduction AngularJS est un framework web qui a été créé par Miško Hevery au sein de Google en 2009.

Introduction à AngularJS

C'est un logiciel libre (licence MIT) dont l'essentiel des contributeurs travaillent pour Google. Il permet de réaliser des applications web en mode Single Page Application. C'est à dire une seule page qui ne se recharge jamais. L'idée de base est d'augmenter le langage HTML pour permettre la représentation des données métiers, qui sont elles traitées et gérées avec le langage Javascript. Apprendre Angular en un jour, le guide ultime - Tinci. Livre AngularJS - Développez aujourd'hui les applications web de demain. Tutoriel sur AngularJS et Spring 4. Comment aborder AngularJS ? Si vous avez lu les articles publiés sur FrAngular qui détaillent des aspects techniques du framework, c'est que vous avez peut-être déjà dépassé le stade de l’initiation.

Comment aborder AngularJS ?

Néanmoins, pour ceux qui découvrent AngularJS, je vais expliquer comment on peut aborder ce framework dont l’apprentissage risque de s’avérer quelque peu déroutant. Les services AngularJS - Angular-js.fr. Tests Unitaires en JavaScript : Tester AngularJS. AngularJS : intégrer des Web Workers. Décembre 2, 2013 par Wassim Chegham Dans ce court billet, nous allons voir comment tirer profit de l’API Web Workers proposée par HTML5, au sein d’une application AngularJS.

AngularJS : intégrer des Web Workers

Cette API va nous permettre de créer des Threads en tâche de fond, dont le rôle sera de réaliser des tâches gourmandes en mémoire, évidement de façon asynchrone et sans détériorer l’expérience utilisateur (en ralentissant l’interface graphique par exemple). Tout d’abord, avant de pouvoir intégrer notre Web Worker dans notre application AngularJS, il va falloir créer un script JavaScript contenant l’implémentation du Web Worker. Voici un exemple d’implémentation de ce script (que nous plaçons dans un répertoire . /app/workers/) . function process(myData) { // vos opérations gourmandes ici... } self.addEventListener('message', function(e) { self.postMessage(process(e.data.myData)); }, false);

AngularJS AJAX. AngularJS AJAX Introduction In AngularJS you can send AJAX requests in several different ways.

AngularJS AJAX

These are: AJAX calls via the $http service. JSONP calls via the $http service. REST type calls. Getting Started with Mobile Angular UI. AngularJS is one of the many buzz frameworks in mobile and web development.

Getting Started with Mobile Angular UI

We’ll create an app using Mobile Angular UI, a framework to develop HTML 5 mobile apps that combines AngularJS with Bootstrap. It provides essential mobile components missing in Bootstrap 3 such as switches and overlays etc. It has no dependency on jQuery but instead relies on libraries such as fastclick.js and overthrow.js to achieve a better mobile experience. Getting Started A demo of the app we’ll be creating is available on Heroku. In this tutorial, we’ll see how to develop a responsive mobile application using Mobile Angular UI.

Angularjs. Friday, November 21, 2014 Download the latest version of angularjs here Reference the JAVASCRIPT file in the head section, the ng-app directive tells angular this is an angular app, connect the input to a model using ng-model directive, the double curly braces are an angular expression, this is two way data binding, the value updates when value inserted in input, notice pipe operator in expression with currency filter for formatting Create a controller and set a default value for the price on scope, scope is the glue between the model and the view, attach ng-controller directive to the body Add a vat variable on scope, twenty percent of the price, bind the vat in the angular expression Modify the price, the vat is not updated The vat variable must be wrapped in a scope watch function, it watches the price variable for changes Add a new watch, watch the vat expression for changes, inside calculate the total, display the result in the view inside the expression.

angularjs

Angularjs-as-alternative-choice-for. AngularJS vs. Backbone.js vs. Ember.js. AngularJS Tutorial: Learn to Build Real-Time Web Apps - Thinkster. There are a myriad of videos & blog posts available on the web that explain the different concepts that comprise AngularJS.

AngularJS Tutorial: Learn to Build Real-Time Web Apps - Thinkster

However, there are few tutorials that actually show you how to manipulate these concepts for the purpose of building slick single-page apps. In this tutorial, we will show you how to build an entire production ready application with AngularJS. Our intention is to provide the AngularJS community with instructions on how to use AngularJS correctly and effectively, but also in its most modern form. The application you are building will go beyond basic use of AngularJS, and we will attempt to explore as much of the framework as possible. Creating an AngularJS Directive from one of your existing plugins/scripts. Writing scripts for your websites or web apps is often a simple process, you write your script, concatenate the file into your main scripts file and it gets pushed into the DOM.

Creating an AngularJS Directive from one of your existing plugins/scripts

Not much to it, but when it comes to AngularJS, they believe in something slightly different... No DOM manipulation should be carried out inside a Controller, the Controller is where most of your magic happens, a communications channel between your Model data and the browser. It can be tempting to simply whack in an existing script in there (as it'll work just fine), but this goes against Angular's principles. So here's how to migrate one of your existing scripts or plugins across into a tightly coded AngularJS directive, this also makes code readability and reuse ultra-efficient, as Directives take the strain of repetative code out the window. Defining a Directive: Directives are really easy to use once you've set them up.

A video player for AngularJS. AngularJS CRUD Operations with WebAPI, EF and Bootstrap. Posted By : Shailendra Chauhan, 03 Sep 2014.

AngularJS CRUD Operations with WebAPI, EF and Bootstrap

Data binding and AJAX (Part 3 of the AngularJS - from beginner to expert in 7 steps series) This is the third post of AngularJS - from beginner to expert in 7 steps.

Data binding and AJAX (Part 3 of the AngularJS - from beginner to expert in 7 steps series)

We started our first post by showing you how to start out building an AngularJS app. In the second post, we discussed how scopes and the $scope service work. Throughout this tutorial series, we are building an NPR audio player that will show us the current stories on the show Morning Edition and play them in our browser. To see the fully finished demo, head over here. 3. We can make our app a bit more interesting by binding an input field to the person.name attribute. Bi-directional in this context means that if the view changes the value, the model sees the change, and if the model changes the value, then the view will see the change. To set up this binding, we’ll use the ng-model function on the input, like so: