Skip to content

Commit 74b311a

Browse files
revert: style(ngFor): add whitespace to Directive annotation
Reverted from commit 35597a8 This style change makes the docs look nicer but clang-format doesn't like it. @mhevery perhaps we can tweak the clang-format rules for this?
1 parent 81d298d commit 74b311a

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

modules/angular2/src/directives/ng_for.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,8 @@ import {isPresent, isBlank} from 'angular2/src/facade/lang';
3333
* - `<li template="ng-for #item of items; #i = index">...</li>`
3434
* - `<template ng-for #item [ng-for-of]="items" #i="index"><li>...</li></template>`
3535
*/
36-
@Directive({
37-
selector: '[ng-for][ng-for-of]',
38-
properties: ['ngForOf'],
39-
lifecycle: [LifecycleEvent.onCheck]
40-
})
36+
@Directive(
37+
{selector: '[ng-for][ng-for-of]', properties: ['ngForOf'], lifecycle: [LifecycleEvent.onCheck]})
4138
export class NgFor {
4239
_ngForOf: any;
4340
_pipe: Pipe;

0 commit comments

Comments
 (0)