-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add view-mode and edit-mode directives update tslint naming directive rules
- Loading branch information
1 parent
0a8bad2
commit 5ad08af
Showing
3 changed files
with
17 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { Directive, TemplateRef } from '@angular/core'; | ||
|
||
@Directive({ | ||
selector: '[editMode]', | ||
}) | ||
export class EditModeDirective { | ||
constructor(public tpl: TemplateRef<any>) {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { Directive, TemplateRef } from '@angular/core'; | ||
|
||
@Directive({ | ||
selector: '[viewMode]', | ||
}) | ||
export class ViewModeDirective { | ||
constructor(public tpl: TemplateRef<any>) {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"extends": "../../../tslint.json", | ||
"rules": { | ||
"directive-selector": [true, "attribute", "lib", "camelCase"], | ||
"directive-selector": [true, "attribute", "camelCase"], | ||
"component-selector": [true, "element", "lib"] | ||
} | ||
} |