{ "pipes": [], "interfaces": [ { "name": "Chainable", "id": "interface-Chainable-7ddccb50f660255362ec61afb256b68be2094534eafd4063272f5a6210a44c5f922a162c5543dbc3368408cc5a3ea83babdf0eb1a93f55351a915fdcd48f791b", "file": "cypress/support/component.ts", "deprecated": false, "deprecationMessage": "", "type": "interface", "sourceCode": "import './commands';\n\n// Alternatively you can use CommonJS syntax:\n// require('./commands')\n\nimport { mount } from 'cypress/angular';\n\n// Augment the Cypress namespace to include type definitions for\n// your custom command.\n// Alternatively, can be defined in cypress/support/component.d.ts\n// with a at the top of your spec.\ndeclare global {\n namespace Cypress {\n interface Chainable {\n mount: typeof mount;\n }\n }\n}\n\nCypress.Commands.add('mount', mount);\n\n// Example use:\n// cy.mount(MyComponent)\n", "properties": [ { "name": "mount", "deprecated": false, "deprecationMessage": "", "type": "", "optional": false, "description": "", "line": 31 } ], "indexSignatures": [], "kind": 171, "methods": [], "extends": [] } ], "injectables": [ { "name": "TranslocoHttpLoader", "id": "injectable-TranslocoHttpLoader-5f134d48bb52d5c852fc8c4c77d1f70823c954c5f9277a01d2302dee177db3ff18d206458f7123afd440209657c3044024921a62ff102fe43c6b6dcadb8e2c68", "file": "src/app/transloco-root.module.ts", "properties": [], "methods": [ { "name": "getTranslation", "args": [ { "name": "lang", "type": "string", "deprecated": false, "deprecationMessage": "" } ], "optional": false, "returnType": "Observable", "typeParameters": [], "line": 18, "deprecated": false, "deprecationMessage": "", "jsdoctags": [ { "name": "lang", "type": "string", "deprecated": false, "deprecationMessage": "", "tagName": { "text": "param" } } ] } ], "deprecated": false, "deprecationMessage": "", "description": "", "rawdescription": "\n", "sourceCode": "import { HttpClient } from '@angular/common/http';\nimport {\n TRANSLOCO_LOADER,\n Translation,\n TranslocoLoader,\n TRANSLOCO_CONFIG,\n translocoConfig,\n TranslocoModule\n} from '@ngneat/transloco';\nimport { Injectable, NgModule } from '@angular/core';\nimport { environment } from '../environments/environment';\nimport { Observable } from 'rxjs';\n\n@Injectable({ providedIn: 'root' })\nexport class TranslocoHttpLoader implements TranslocoLoader {\n constructor(private http: HttpClient) { }\n\n getTranslation(lang: string): Observable {\n return this.http.get(`/assets/i18n/${lang}.json`);\n }\n}\n\n@NgModule({\n exports: [TranslocoModule],\n providers: [\n {\n provide: TRANSLOCO_CONFIG,\n useValue: translocoConfig({\n availableLangs: ['de', 'en'],\n defaultLang: 'de',\n // Remove this option if your application doesn't support changing language in runtime.\n reRenderOnLangChange: true,\n prodMode: environment.production,\n })\n },\n { provide: TRANSLOCO_LOADER, useClass: TranslocoHttpLoader }\n ]\n})\nexport class TranslocoRootModule { }\n", "constructorObj": { "name": "constructor", "description": "", "deprecated": false, "deprecationMessage": "", "args": [ { "name": "http", "type": "HttpClient", "deprecated": false, "deprecationMessage": "" } ], "line": 15, "jsdoctags": [ { "name": "http", "type": "HttpClient", "deprecated": false, "deprecationMessage": "", "tagName": { "text": "param" } } ] }, "extends": [], "type": "injectable" } ], "guards": [], "interceptors": [], "classes": [], "directives": [], "components": [ { "name": "AppComponent", "id": "component-AppComponent-39d097ffc3d5687d519c071f77e65b47ea7d608fd9c58a421c93a4b11f22788d830e43512b9824271ea1291911a73cfadf8ccd175282d58b85be17427886167b", "file": "src/app/app.component.ts", "encapsulation": [], "entryComponents": [], "inputs": [], "outputs": [], "providers": [], "selector": "app-root", "styleUrls": ["./app.component.css"], "styles": [], "templateUrl": ["./app.component.html"], "viewProviders": [], "hostDirectives": [], "inputsClass": [], "outputsClass": [], "propertiesClass": [ { "name": "title", "defaultValue": "'angular-starter'", "deprecated": false, "deprecationMessage": "", "type": "string", "optional": false, "description": "", "line": 9 } ], "methodsClass": [], "deprecated": false, "deprecationMessage": "", "hostBindings": [], "hostListeners": [], "standalone": false, "imports": [], "description": "", "rawdescription": "\n", "type": "component", "sourceCode": "import { Component } from '@angular/core';\n\n@Component({\n selector: 'app-root',\n templateUrl: './app.component.html',\n styleUrls: ['./app.component.css']\n})\nexport class AppComponent {\n title = 'angular-starter';\n}\n", "assetsDirs": [], "styleUrlsData": [ { "data": "", "styleUrl": "./app.component.css" } ], "stylesData": "", "extends": [], "templateData": "\n\n\n
\n \n Welcome\n
\n \n \n \n \n \n \n
\n\n
\n\n \n
\n\n \n \n \n \n \n \n \n \n \n\n {{ title }} app is running!\n\n \n \n \n\n
\n\n \n

Resources

\n

Here are some links to help you get started:

\n\n \n\n \n

Next Steps

\n

What do you want to do next with your app?

\n\n \n\n
\n
\n \n\n New Component\n
\n\n
\n \n\n Angular Material\n
\n\n
\n \n\n Add PWA Support\n
\n\n
\n \n\n Add Dependency\n
\n\n
\n \n\n Run and Watch Tests\n
\n\n
\n \n\n Build for Production\n
\n
\n\n \n
\n
ng generate component xyz
\n
ng add @angular/material
\n
ng add @angular/pwa
\n
ng add _____
\n
ng test
\n
ng build --prod
\n
\n\n \n \n\n \n \n\n \n \n \n\n
\n\n\n\n\n\n\n\n\n\n\n" } ], "modules": [ { "name": "AppModule", "id": "module-AppModule-78ec09853dad097ef714ec50c65dd561a46c530bd1c662966fa2a321642023e923285e01f0a869466b999159d716022cc5c6b62fd07c7d01835e3b90a72f7790", "description": "", "deprecationMessage": "", "deprecated": false, "file": "src/app/app.module.ts", "methods": [], "sourceCode": "import { BrowserModule } from '@angular/platform-browser';\nimport { NgModule } from '@angular/core';\n\nimport { AppComponent } from './app.component';\nimport { BrowserAnimationsModule } from '@angular/platform-browser/animations';\nimport { HttpClientModule } from '@angular/common/http';\nimport { TranslocoRootModule } from './transloco-root.module';\n\n@NgModule({\n declarations: [\n AppComponent\n ],\n imports: [\n BrowserModule,\n BrowserAnimationsModule,\n HttpClientModule,\n TranslocoRootModule\n ],\n providers: [],\n bootstrap: [AppComponent]\n})\nexport class AppModule { }\n", "children": [ { "type": "providers", "elements": [] }, { "type": "declarations", "elements": [ { "name": "AppComponent" } ] }, { "type": "imports", "elements": [ { "name": "TranslocoRootModule" } ] }, { "type": "exports", "elements": [] }, { "type": "bootstrap", "elements": [ { "name": "AppComponent" } ] }, { "type": "classes", "elements": [] } ] }, { "name": "TranslocoRootModule", "id": "module-TranslocoRootModule-5f134d48bb52d5c852fc8c4c77d1f70823c954c5f9277a01d2302dee177db3ff18d206458f7123afd440209657c3044024921a62ff102fe43c6b6dcadb8e2c68", "description": "", "deprecationMessage": "", "deprecated": false, "file": "src/app/transloco-root.module.ts", "methods": [], "sourceCode": "import { HttpClient } from '@angular/common/http';\nimport {\n TRANSLOCO_LOADER,\n Translation,\n TranslocoLoader,\n TRANSLOCO_CONFIG,\n translocoConfig,\n TranslocoModule\n} from '@ngneat/transloco';\nimport { Injectable, NgModule } from '@angular/core';\nimport { environment } from '../environments/environment';\nimport { Observable } from 'rxjs';\n\n@Injectable({ providedIn: 'root' })\nexport class TranslocoHttpLoader implements TranslocoLoader {\n constructor(private http: HttpClient) { }\n\n getTranslation(lang: string): Observable {\n return this.http.get(`/assets/i18n/${lang}.json`);\n }\n}\n\n@NgModule({\n exports: [TranslocoModule],\n providers: [\n {\n provide: TRANSLOCO_CONFIG,\n useValue: translocoConfig({\n availableLangs: ['de', 'en'],\n defaultLang: 'de',\n // Remove this option if your application doesn't support changing language in runtime.\n reRenderOnLangChange: true,\n prodMode: environment.production,\n })\n },\n { provide: TRANSLOCO_LOADER, useClass: TranslocoHttpLoader }\n ]\n})\nexport class TranslocoRootModule { }\n", "children": [ { "type": "providers", "elements": [] }, { "type": "declarations", "elements": [] }, { "type": "imports", "elements": [] }, { "type": "exports", "elements": [] }, { "type": "bootstrap", "elements": [] }, { "type": "classes", "elements": [] } ] } ], "miscellaneous": { "variables": [ { "name": "environment", "ctype": "miscellaneous", "subtype": "variable", "file": "src/environments/environment.prod.ts", "deprecated": false, "deprecationMessage": "", "type": "object", "defaultValue": "{\n production: true\n}" }, { "name": "environment", "ctype": "miscellaneous", "subtype": "variable", "file": "src/environments/environment.ts", "deprecated": false, "deprecationMessage": "", "type": "object", "defaultValue": "{\n production: false\n}" } ], "functions": [], "typealiases": [], "enumerations": [], "groupedVariables": { "src/environments/environment.prod.ts": [ { "name": "environment", "ctype": "miscellaneous", "subtype": "variable", "file": "src/environments/environment.prod.ts", "deprecated": false, "deprecationMessage": "", "type": "object", "defaultValue": "{\n production: true\n}" } ], "src/environments/environment.ts": [ { "name": "environment", "ctype": "miscellaneous", "subtype": "variable", "file": "src/environments/environment.ts", "deprecated": false, "deprecationMessage": "", "type": "object", "defaultValue": "{\n production: false\n}" } ] }, "groupedFunctions": {}, "groupedEnumerations": {}, "groupedTypeAliases": {} }, "routes": [], "coverage": { "count": 0, "status": "low", "files": [ { "filePath": "cypress/support/component.ts", "type": "interface", "linktype": "interface", "name": "Chainable", "coveragePercent": 0, "coverageCount": "0/2", "status": "low" }, { "filePath": "src/app/app.component.ts", "type": "component", "linktype": "component", "name": "AppComponent", "coveragePercent": 0, "coverageCount": "0/2", "status": "low" }, { "filePath": "src/app/transloco-root.module.ts", "type": "injectable", "linktype": "injectable", "name": "TranslocoHttpLoader", "coveragePercent": 0, "coverageCount": "0/3", "status": "low" }, { "filePath": "src/environments/environment.prod.ts", "type": "variable", "linktype": "miscellaneous", "linksubtype": "variable", "name": "environment", "coveragePercent": 0, "coverageCount": "0/1", "status": "low" }, { "filePath": "src/environments/environment.ts", "type": "variable", "linktype": "miscellaneous", "linksubtype": "variable", "name": "environment", "coveragePercent": 0, "coverageCount": "0/1", "status": "low" } ] } }