Skip to content

feat(core): implement *isDevMode directive#6

Merged
thekiba merged 1 commit intomasterfrom
feature/is-dev-mode
Apr 7, 2019
Merged

feat(core): implement *isDevMode directive#6
thekiba merged 1 commit intomasterfrom
feature/is-dev-mode

Conversation

@thekiba
Copy link
Copy Markdown
Member

@thekiba thekiba commented Apr 7, 2019

Directive using isDevMode() from the @angular/core, and will show view when isDevMode() returns true.

When the application is launched in production then view will not be shown.

if (environment.production) {
  enableProdMode();
}

Example of usage:

<div *isDevMode>My secret debug text!</div>

@thekiba thekiba merged commit 5d25f86 into master Apr 7, 2019
@thekiba thekiba deleted the feature/is-dev-mode branch April 21, 2019 05:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant