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
ng new angular-logger | |
? Would you like to add Angular routing? Yes | |
? Which stylesheet format would you like to use? SCSS [ https://sass-lang.com/documentation/syntax#scss ] | |
CREATE angular-logger/README.md (1059 bytes) | |
CREATE angular-logger/.editorconfig (274 bytes) | |
CREATE angular-logger/.gitignore (604 bytes) | |
CREATE angular-logger/angular.json (3255 bytes) | |
CREATE angular-logger/package.json (1076 bytes) | |
CREATE angular-logger/tsconfig.json (783 bytes) | |
CREATE angular-logger/.browserslistrc (703 bytes) |
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
logger: { | |
level: 'TRACE', | |
}, |
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
npm install ngx-logger |
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
import { HttpClientModule } from '@angular/common/http'; | |
import { LoggerModule, NgxLoggerLevel } from 'ngx-logger'; | |
import { environment } from '../environments/environment'; | |
const environmentConfig: any = environment.logger; | |
imports: [ | |
BrowserModule, | |
HttpClientModule, |
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
import { Component } from '@angular/core'; | |
import { NGXLogger } from 'ngx-logger'; | |
@Component({ | |
selector: 'app-root', | |
templateUrl: './app.component.html', | |
styleUrls: ['./app.component.scss'], | |
}) | |
export class AppComponent { |
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
<div class="container-fluid py-3"> | |
<h1>Angular Logger</h1> | |
<div class="d-grid gap-2 col-4 mt-4 mx-auto"> | |
<button type="button" class="btn btn-sm btn-primary" (click)="showTrace()">Trace</button> | |
<button type="button" class="btn btn-sm btn-success" (click)="showDebug()">Debug</button> | |
<button type="button" class="btn btn-sm btn-info" (click)="showInfo()">Info</button> | |
<button type="button" class="btn btn-sm btn-warning" (click)="showWarn()">Warn</button> | |
<button type="button" class="btn btn-sm btn-danger" (click)="showError()">Error</button> | |
<button type="button" class="btn btn-sm btn-secondary" (click)="showFatal()">Fatal</button> | |
</div> |
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
npm start | |
> angular-logger@1.0.0 start | |
> ng serve | |
✔ Browser application bundle generation complete. | |
Initial Chunk Files | Names | Size | |
vendor.js | vendor | 2.55 MB | |
styles.css | styles | 266.58 kB |
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
ng new angular-recaptcha-v2 | |
? Would you like to add Angular routing? Yes | |
? Which stylesheet format would you like to use? SCSS [ https://sass-lang.com/documentation/syntax#scss ] | |
CREATE angular-recaptcha-v2/README.md (1064 bytes) | |
CREATE angular-recaptcha-v2/.editorconfig (274 bytes) | |
CREATE angular-recaptcha-v2/.gitignore (604 bytes) | |
CREATE angular-recaptcha-v2/angular.json (3291 bytes) | |
CREATE angular-recaptcha-v2/package.json (1082 bytes) | |
CREATE angular-recaptcha-v2/tsconfig.json (783 bytes) | |
CREATE angular-recaptcha-v2/.browserslistrc (703 bytes) |
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
recaptcha: { | |
siteKey: '6LfKNi0cAAAAACeYwFRY9_d_qjGhpiwYUo5gNW5-', | |
}, |
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
npm install ng-recaptcha |
OlderNewer