Skip to content

Instantly share code, notes, and snippets.

View lloop's full-sized avatar

coco_bolo lloop

  • Arens de Lledo, Spain
  • 14:32 (UTC +02:00)
View GitHub Profile
lloop /
Created November 23, 2015 07:09 — forked from demisx/
AngularJS Providers: Constant/Value/Service/Factory/Decorator/Provider
Provider Singleton Instantiable Configurable
Constant Yes No No
Value Yes No No
Service Yes No No
Factory Yes Yes No
Decorator Yes No? No
Provider Yes Yes Yes


lloop /
Created November 21, 2015 12:07 — forked from CMCDragonkai/
JS: AngularJS Directive Attribute Binding Explanation

AngularJS Directive Attribute Binding Explanation

When using directives, you often need to pass parameters to the directive. This can be done in several ways. The first 3 can be used whether scope is true or false. This is still a WIP, so validate for yourself.

  1. Raw Attribute Strings

    <div my-directive="some string" another-param="another string"></div>