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
lloop / angularjs-providers-explained.md
Created November 23, 2015 07:09 — forked from demisx/angularjs-providers-explained.md
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

Constant

@lloop
lloop / angularjs_directive_attribute_explanation.md
Created November 21, 2015 12:07 — forked from CMCDragonkai/angularjs_directive_attribute_explanation.md
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>