AngularJS
9 views | +0 today
Follow
Your new post is loading...
Your new post is loading...
Rescooped by Caleb Rosario from JavaScript for Line of Business Applications
Scoop.it!

AngularJS Directive Design Made Easy

AngularJS Directive Design Made Easy | AngularJS | Scoop.it

Directives make our lives easier when you can reuse them without needing to read or edit the source code. Then we can forget how they work, and just remember what they do.

If you’re coming from a view-centric framework, like Backbone, you may be tempted to separate your application into view-like directive chunks. For example, if you want to display a list of users, you might create a directive that reads $scope.users and prints them all out:

<user-list/>

The user-list directive works. I mean, look how DRY it is! However, contrast it withng-repeat, which handles only the repetition. Which one could be used in more places? What if you need to display users differently in two places?


Via Jan Hesse
more...
No comment yet.
Rescooped by Caleb Rosario from Angularjs Resources
Scoop.it!

A Shopping Cart Application Built with AngularJS - CodeProject

A Shopping Cart Application Built with AngularJS - CodeProject | AngularJS | Scoop.it
Create a shopping cart class and use it in your MVVM HTML5 applications.; Author: Bernardo Castilho; Updated: 6 Aug 2013; Section: E-commerce; Chapter: Web Development; Updated: 6 Aug 2013

Via Mitch Chen
more...
No comment yet.
Rescooped by Caleb Rosario from Best
Scoop.it!

20 JavaScript Frameworks: MVVM Templating, Licenses etc ...

20 JavaScript Frameworks: MVVM Templating, Licenses etc ... | AngularJS | Scoop.it
Agility.js is an MVC library for Javascript that lets you write maintainable and reusable browser code without the verbose or infrastructural overhead found in other MVC libraries. The goal is to ....

Via Luis Black, Dr. Stefan Gruenwald
more...
No comment yet.