AngularJS
51.3K views | +2 today
Follow
AngularJS
Ressources about AngularJS, single page application.
Curated by William delmas
Your new post is loading...
Your new post is loading...
Scooped by William delmas
Scoop.it!

Common Misconceptions About Inheritance in JavaScript

Common Misconceptions About Inheritance in JavaScript - JavaScript Scene - Medium

WAT? [wat] — interjection: A sound a programmer makes when something violates the principle of least astonishment by astonishing them with counter-intuitive behavior.
> .1 + .2
0.30000000000000004
> WAT? OMG! STFU! STUPID JAVASCRIPT!!!

Also, WAT? is the sound I make when I talk to many seasoned JavaScript developers who have neglected to learn the basic mechanics of prototypal inheritance: one of the most important innovations in CS history, and one of the Two Pillars of JavaScript.
To me, this is like a professional photographer who has yet to learn the exposure triangle — the basic formula for controlling much of the visual style of a photograph. Put simply:



more...
No comment yet.
Scooped by William delmas
Scoop.it!

PhoneGap and AngularJs, Notification Service

PhoneGap and AngularJs, Notification Service | AngularJS | Scoop.it

Continuing on with our adventure with PhoneGap and AngularJs we are going to explore the PhoneGap Notification API and create a AngularJs service that lets the two work together a bit better.


The Notification API for PhoneGap allows for us to present native alerts, confirms, prompts, and beeps to the user of the iOS app. Most of these are fairly straight forward but will go into detail ofalert as it is a good basis for the rest of the exposed API.

more...
No comment yet.
Scooped by William delmas
Scoop.it!

How to Write a Simple AngularJs Directive

How to Write a Simple AngularJs Directive | AngularJS | Scoop.it

After using AngularJs for awhile I needed to extend the built in$filter("currency") to add a bit of css magic to some of my elements. I wanted to add a class to the text so I can style the element to give it a distinct look for positive and negative values. I also did not want to reinvent the currency filter.

more...
No comment yet.
Scooped by William delmas
Scoop.it!

DRY dependency injection in Angular with gulp-ng-annotate

DRY dependency injection in Angular with gulp-ng-annotate | AngularJS | Scoop.it

One build tool that I really like is gulp. If you're not familiar with gulp, the cool thing about it is that it uses node's streams as a performant piping mechanism to connect multiple tiny modules that do one thing, and one thing well.

Now back to Angular and the tedious process I explained before. With ng-annotate the inline array annotation becomes unnecessary, even though your code can still be minified.


more...
No comment yet.
Scooped by William delmas
Scoop.it!

Code Organization in Large AngularJS and JavaScript Applications

Code Organization in Large AngularJS and JavaScript Applications | AngularJS | Scoop.it

Many developers struggle with how to organize an application's code base once it grows in size. I've seen this recently in AngularJS and JavaScript applications but historically it's been a problem across all technologies including many Java and Flex apps I've worked on in the past.

The general trend is an obsession with organizing things by type. It bears a striking resemblance to the way people organize their clothing.

more...
No comment yet.