Commit Graph

45 Commits

Author SHA1 Message Date
Victor Berchet 20953ed492 doc(Directive): update docs for Directive.host 2015-06-11 13:11:09 -07:00
Victor Berchet d7df853bde feat(Directive): convert properties to an array
fixes #2013

BREAKING CHANGE:

Before

    @Directive(properties: {
      'sameName': 'sameName',
      'directiveProp': 'elProp | pipe'
    })

After

    @Directive(properties: [
      'sameName',
      'directiveProp: elProp | pipe'
    ])
2015-05-29 11:44:43 +02:00
vsavkin 7b511462af refactor(core): renamed injectables into appInjector
BREAKING CHANGES

Before:

@Component({injectables: [Type]} class MyCmp{}

After:

@Component({appInjector: [Type]} class MyCmp{}
2015-05-18 18:30:52 -07:00
Victor Berchet 842459aa46 doc: fix & sync with latest updates 2015-05-18 23:11:45 +02:00
Misko Hevery 111fa60a93 chore: rename for to ng-for
Closes #1598
Closes #1295
Closes #1827

Closes #1827
2015-05-12 15:32:44 -07:00
gdi2290 09b39bf77a docs(core): fix Formatters -> Pipes
long overdue update

Closes #1629
2015-05-08 13:45:13 -07:00
Tobias Bosch f75a50c1dd refactor(compiler): rename decorator directives into directive
BREAKING CHANGE:
Previously, `Directive` was the abstract base class of several directives.
Now, `Directive` is the former `Decorator`, and `Component` inherits from it.
2015-04-30 13:38:40 -07:00
Tobias Bosch 3aac2fefd7 refactor(compiler): remove `Viewport` directives, use `Decorator` instead
BREAKING_CHANGE:
- The special type of `Viewport` directives is removed
  in favor of a more general `Decorator` directive
- `ViewContainerRef` now no more has a default `ProtoViewRef`
  but requires an explicit one when creating views.

Closes #1536
2015-04-29 15:59:55 -07:00
Josh Kurz 14988d4415 docs(core): updating some errors in 01_templates
Signed-off-by: Josh Kurz <jkurz25@gmail.com>

Closes #1529
2015-04-28 23:39:20 +00:00
Josh Kurz cd953ceb48 docs(core): update core directives document
Signed-off-by: Josh Kurz <jkurz25@gmail.com>
2015-04-28 23:39:20 +00:00
Tobias Bosch 6dece68bb8 refactor(core): rename ViewContainer to ViewContainerRef
This also renames InternalAppViewContainer into AppViewContainer

Related to #1477
Closes #1554
2015-04-27 10:12:21 -07:00
Ciro Nunes 0676fef61f docs(directives): CSS selectors are used for directives
Closes #1544
2015-04-27 15:32:26 +02:00
Matthew Hill 6f4b6783c0 docs(02_directives): TemplateConfig -> @View
for #1224

Closes #1325
2015-04-21 16:31:25 -07:00
Marc Laval 883e1c1541 feat(events): support preventdefault
Fixes #1039
Closes #1397
2015-04-20 15:20:52 +02:00
Pawel Kozlowski 5a095bb257 refactor(di): rename ProviderError to BindingError
Closes #1428
2015-04-17 20:17:51 +02:00
Bradley Heinz cd1295a823 Update 01_templates.md
Closes #1373
2015-04-15 19:48:34 -07:00
Bradley Heinz 5d302c504e Update 02_directives.md
Closes #1374
2015-04-15 19:48:31 -07:00
Yegor Jbanov 4a961f4ecb feat(di): provide two ways to create an injector, resolved and unresolved
Add two factory static functions to Injector: resolveAndCreate and
fromResolvedBindings.

We want to avoid resolution and flattening every time we create a new
injector. This commit allows the user to cache resolved bindings and
reuse them.
2015-04-13 15:06:43 -07:00
Pawel Kozlowski bf7933714a chore(rename): rename View and Template concepts for #1244 2015-04-10 12:00:37 -07:00
PatrickJS d552303cd5 docs(02_directives.md): foreach -> for
Closes #1235
2015-04-04 10:32:53 +02:00
Patrick 069bbf3ed0 docs(02_directives.md): Fixes variable name for visibility in Components example 2015-04-03 14:18:15 -07:00
laiso 65320126c2 docs(directives): fix HTML in an example
Closes #1115
2015-03-28 15:37:11 +01:00
Nick Van Dyck 0e61a86763 docs: annotations 2015-03-24 00:42:58 +00:00
Nick Van Dyck f1fca5abb6 (docs) decorator events property
As from what i understand shouldn't the event property rather be events: https://github.com/angular/angular/blob/master/modules/angular2/src/core/annotations/annotations.js#L161

Closes #1018
2015-03-21 18:26:13 +00:00
Rado Kirov dd3e6271c2 chore(services): rename services.
Closes #711
2015-03-11 18:30:37 -07:00
Dylan Johnson 7e93c54603 docs(12_zones.md): Fix typos and inconsistent capitalization
Closes #893
2015-03-09 18:58:56 +01:00
Tim Blasi ccb306cce7 docs(di): Fix typos, add some clarification.
Or maybe expose my lack of understanding, we'll see!
2015-02-27 14:54:16 -08:00
Sekib Omazic 4d35dd4d45 docs(02_directives.md): Change the description of bind property
Also add attribute open to the html

Closes #767
2015-02-24 10:34:26 -08:00
Pawel Kozlowski d8103aeca6 docs(di): fix code examples
Closes #750
2015-02-21 22:14:26 +00:00
Pawel Kozlowski 0c4fbfc8e2 feat(di): introduce aliasing
Closes #710
Closes #747
2015-02-21 18:43:45 +01:00
Pawel Kozlowski 56f4e84d45 fix: flip attr / property bind in directives annotations
Fixes #648

Closes #684
2015-02-18 17:07:53 +01:00
Peter Bacon Darwin 538b0879dc docs(core/01_templates): add <pre> tags to improve layout
Closes #687
2015-02-17 15:54:33 -08:00
Pascal Precht 2dcddcfb4a docs(templates/directives): fixes several typos
Closes #674
2015-02-17 13:43:44 -08:00
Richard Harrington a002ed1183 docs(core/templates): fix various typo and grammatical errors
Closes #666
2015-02-17 13:35:34 -08:00
Richard Harrington 81bc706ef1 docs(core/formatters): fix typos and grammar
Closes #665
2015-02-17 12:03:55 -08:00
Gerd Jungbluth 4d1254d6df docs(core): fix some typos 2015-02-17 11:55:22 -08:00
Peter Bacon Darwin 83f650fca7 docs(change_detection): add explicit @name and @description
This demonstrates how to override the name of a guide doc
2015-02-17 08:08:47 +00:00
gdi2290 85d4d13c77 docs(02_directives): TemplateConfig -> @Template
Update docs with new template api and remove previous cssUrl api
2015-02-17 08:54:20 +01:00
Peter Bacon Darwin a0e284ed0e docs(core/formatters): add some dummy code to stop marked plugin from bombing 2015-02-15 15:46:04 +00:00
Matias Niemelä 52b062621d Update 01_templates.md 2015-02-13 12:04:03 -05:00
Victor Berchet 6d23d00057 refactor(ViewPort): @Template -> @Viewport, ViewPort -> ViewContainer
fixes #595
2015-02-13 17:48:27 +01:00
Kara 617206bd1c docs: Update variables to match example
It looks like the {{item}} variable in the examples should be {{person}}, as that is what has been exported (#person, etc).

It seems like the docs aren't finalized, but the discrepancy might confuse people coming in to learn from them in the meantime.

Closes #589
2015-02-09 19:54:07 -08:00
Jorge Cruz 4ceb865632 docs(01_templates.md): typos
Fix spelling errors in 01_templates.md

Closes #585
2015-02-09 19:53:40 -08:00
Marc Laval 6bfa48bc64 refactor(directives): Drop ng- prefix from all angular directives and rename NgRepeat to Foreach
fixes #532

Closes #539
2015-02-06 09:24:50 -08:00
Yegor Jbanov 3820609f24 chore(packaging): move files to match target file structure 2015-02-05 15:46:13 -08:00