Javascript
61.3K views | +0 today
Follow
Javascript
Ressources about Javascript languages.
Curated by William delmas
Your new post is loading...
Your new post is loading...
Scooped by William delmas
Scoop.it!

Migrating directives to Angular 2

Migrating directives to Angular 2 | Javascript | Scoop.it

Angular 2 it is just around the corner and people are still afraid because Angular 2 changes too much and it will hard to migrate. That is not true at all, in fact you will see how easy is Angular 2by highlighting the semantic shift between those two.

Let’s migrate a directive from Angular 1 to Angular 2. I love accordions, everybody love accordions! Let’s migrate ui-bootstrap accordion to Angular 2. I can’t assume that you’re familiar with it, so we are code both at the same time, explaining the differences along the way. I highly recommend you to, at least, replicate yourself the Angular 2 one.



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

React JS Injection into Angular JS Application or Fighting for Performance Increase

React JS Injection into Angular JS Application or Fighting for Performance Increase | Javascript | Scoop.it
React JS Injection into Angular JS Application or Fighting for Performance Increase; Author: EastBancTech; Updated: 15 Aug 2014; Section: Client side scripting; Chapter: Web Development; Updated: 15 Aug 2014
No comment yet.
Scooped by William delmas
Scoop.it!

Angular Directive Examples

Angular Directive Examples | Javascript | Scoop.it

Over the last few months, I've been digging into the Angular framework. One of the things that I really like about Angular, and hope to learn to use extremely well as I progress, is their notion of a "Directive". Directives provide a means for extending both the semantic meaning and functionality of your markup. There are many different ways to implement directives, and the documentation on the angular site is still a work in progress, so I would like to share how I've used them up to this point.

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

Bootstrap Popover using AngularJs $compile service

Bootstrap Popover using AngularJs $compile service | Javascript | Scoop.it

Here is a quick snippet of a directive that utilizes the$compile service to dynamically render some html content for the boot strap popover component.

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

How to Write a Simple AngularJs Directive

How to Write a Simple AngularJs Directive | Javascript | 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.

No comment yet.
Rescooped by William delmas from Angular.js and Google Dart
Scoop.it!

A curated list of angular-js directives.

A curated list of angular-js directives. | Javascript | Scoop.it

Angular-js.in is a curated repository of the best angular-js directives, modules, services, bootstrap, ui, etc


Via Piyas De
No comment yet.
Scooped by William delmas
Scoop.it!

AngularStrap AngularJS 1.2+ native directives for Twitter Bootstrap 3.

AngularStrap AngularJS 1.2+ native directives for Twitter Bootstrap 3. | Javascript | Scoop.it

AngularStrap was initially written to provide AngularJS wrapping directives for Twitter Bootstrap. It used to leverage the javascript code written by Bootstrap's contributors to minimize work, retro-compatibility issues & time to market.

While it worked pretty well, it required a big javascript payload: both jQuery & Twitter Bootstrap libraries. When the 1.2 release of AngularJS showed up with the ngAnimate module, greatly simplifying DOM manipulation, we knew it was time for a rewrite!

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

Building an AngularJS Dialog Service

Building an AngularJS Dialog Service | Javascript | Scoop.it

One of the tasks I find myself performing a lot when building Line of Business (LOB) applications is displaying dialogs. Some of the dialogs are modal (the user can’t click on the background to dismiss it) and some are non-modal. For example, I’m currently working on a LOB application that displays modal dialogs as users delete items on a page.

 

 

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

The Hitchhiker's Guide to the Directive

The Hitchhiker's Guide to the Directive | Javascript | Scoop.it

AngularJS Directive is what we have close to Web Components at this time and is the most crucial and difficult piece in AngularJS. I’ve not found any suitable article on the web to fully understand directives behavior based on options it takes so I’m writing one. Fingers crossed!

No comment yet.