Category Archives: Javascript

Angular JS Egghead Videos Aprendis

“The dot” Si dejamos ng-app=”” (vacío) podemos tener un comportamiento de data-binding inesperado.Por ejemplo no será lo mismo {{pepe.message}} que {{message}} cuando tengo varios controllers y data binding fuera de controllers. Esto se produce porque hay un parent scope y se producen efectos colaterales Sharing data between controllers Se hace creando un factory y metiendo […]

AngularJS: Dependency injection

[Fuente: https://docs.angularjs.org/guide/di] Dependency Injection Dependency Injection (DI) is a software design pattern that deals with how components get hold of their dependencies. The Angular injector subsystem is in charge of creating components, resolving their dependencies, and providing them to other components as requested. For in-depth discussion about DI, see Dependency Injection at Wikipedia, Inversion of Control by Martin Fowler, […]

Iris: Modern front-end development: Iris + GruntJS + NodeJS

[Fuente: http://www.thegameofcode.com/2013/05/front-end-with-iris-nodejs-gruntjs.html] ¿Por qué utilizar Iris? Los motores de Javascript actuales están evolucionando rápidamente y se están volviendo más rápidos y potentes. Sin embargo por otro lado es común encontrar códigos fuente de Javascript realmente feos y liosos. El framework de Iris te guía en la buena dirección y te ayuda a programar aplicaciones web […]

Autenticación en Single Page Applications With Angular.js

[Fuente: http://www.frederiknakstad.com/2013/01/21/authentication-in-single-page-applications-with-angular-js/] I have been working a lot with Angular.js lately, and love how easy it makes it to create web applications with rich client-side functionality. It’s an extremely useful asset in keeping your own client-side code lean, making it easy to separate business logic and declarative markup for anything view specific. However, it’s not […]

Javascript : Utilizando CORS (Cross-Origin-Resource-Sharing)

[Fuente: http://www.html5rocks.com/en/tutorials/cors/] Introduction APIs are the threads that let you stitch together a rich web experience. But this experience has a hard time translating to the browser, where the options for cross-domain requests are limited to techniques like JSON-P (which has limited use due to security concerns) or setting up a custom proxy (which can be a […]

Angular UI Bootstrap

[Fuente: http://angular-ui.github.io/bootstrap/] Getting started Dependencies This repository contains a set of native AngularJS directives based on Bootstrap’s markup and CSS. As a result no dependency on jQuery or Bootstrap’s JavaScript is required. The only required dependencies are: AngularJS (minimal version 1.0.8) Bootstrap CSS (tested with version 3.0.3). This version of the library (0.10.0) works only with Bootstrap CSS in version 3.x. […]

JSONP: JSON con padding

[Fuente: http://es.wikipedia.org/wiki/JSONP] JSONP o “JSON con padding” es una técnica de comunicación utilizada en los programas JavaScript para realizar llamadas asíncronas a dominios diferentes. JSONP es un método concebido para suplir la limitación de AJAX entre dominios, que únicamente permite realizar peticiones a páginas que se encuentran bajo el mismo dominio y puerto por razones de seguridad. Razón del JSONP Bajo […]

Angular JS : Understanding directives

[Fuente: https://github.com/angular/angular.js/wiki/Understanding-Directives] Understanding Directives Generously reshared from AngularUI This document is a (tangential) attempt to explain how AngularJS directives and the related compiling engine works so that you’re not flailing around like a noodle the first time you try to tackle it yourself. Injecting, Compiling, and Linking functions When you create a directive, there are […]

AngularJs: Multidioma

[Fuente : http://www.ng-newsletter.com/posts/angular-translate.html] Easy global i18n angularJS language translations for your Angular app As worldwide access to the web increases, we as developers are constantly pressed to make our apps internationally and locally accessible. When a user visits our apps, he or she should be able to switch languages on the fly at runtime. Given […]

Angular JS: Javascript promises

[Fuente:  http://wildermuth.com/2013/8/3/JavaScript_Promises] En este artículo hablamos sobre el concepto de objecto promise que varias librerias Javascript utilizan (incluyendo AngularJS , jQuery , Dojo y WinJS). Una promise es un patrón para manejar operaciones asíncronas. El problema es que esencialmente cuando comienzas una operación asíncrona, necesitas ejecutar cierto código cuando la operación se ha completado. El […]