ngx-config | Configuration utility for Angular | Build Tool library
kandi X-RAY | ngx-config Summary
kandi X-RAY | ngx-config Summary
Configuration utility for Angular
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ngx-config
ngx-config Key Features
ngx-config Examples and Code Snippets
Community Discussions
Trending Discussions on ngx-config
QUESTION
I am currently working on angular application which is written using angular 4. And now I want integrate angular material latest into it. I just wanted to if this is possible. Soon after I integrate latest version and run npm run build:aot:prod
it gives me errors:
ERROR in Metadata version mismatch for module C:/gitRepo/gmdias/gmdais-frontend/node_modules/@angular/animations/browser/browser.d.ts, found version 4, expected 3, resolving symbol ɵf in C:/gitRepo/gmdias/gmdais-frontend/node_modules/@angular/platform-browser/animations/index.d.ts, resolving symbol BrowserAnimationsModule in C:/gitRepo/gmdias/gmdais-frontend/node_modules/@angular/platform-browser/animations/index.d.ts, resolving symbol BrowserAnimationsModule in C:/gitRepo/gmdias/gmdais-frontend/node_modules/@angular/platform-browser/animations/index.d.ts`
Also upgrading angular version is not an option for me at this stage.
In this case I wanted know if Angular material latest version can be integrated with an Angular 4 application?
For more info I'll post my package.json file :
...ANSWER
Answered 2019-May-02 at 16:42As per the error, its expecting "@angular/animations": "3.X.X" not 4,
@angular/animations/browser/browser.d.ts, found version 4, expected 3,
QUESTION
LiveDemo with Code see here https://stackblitz.com/edit/ngx-editor
In this project you can see in the document app.component.ts that the variable editorConfig contains the configuration of the editor.
I want to outsource this variable in a file, because I want to load a different configuration depending on the purpose of use.
If I create a componente, the page does not load. How can I create an ngx-config-component.ts which only contains the variable and how can I integrate this configuration afterwards?
Thank you very much for your help Christoph
...ANSWER
Answered 2018-Jul-08 at 00:25I don't really understand why you need to separate this into a separate file but it would probably be best to use Angular's Dependency Injection mechanism. I made a fork on stackblitz as an example: https://stackblitz.com/edit/ngx-editor-ecaqtx
I created a new service in the file config.service.ts:
QUESTION
I am getting this error after upgrading one of my project dependencies (ngx-config). Here is the full error from the console.
Unhandled Promise rejection: Endpoint unreachable! ; Zone: ; Task: Promise.then ; Value: Endpoint unreachable! undefined (zone.js:630)
Note: ng serve
works and compiles just fine, this error occurs at runtime.
ANSWER
Answered 2018-Mar-19 at 21:29This error is being thrown by ngx-config.
Turns out we are using HTTP_INTERCEPTORS
which depends on HttpClient
. The newest version of ngx-config also uses HttpClient
(instead of the old Http
). Upon upgrading ngx-config/core and ngx-config/http-loader to version 5.0.0
there arose a circular dependency. The call to get config.json
was now going through the interceptor but the interceptor depended upon the config settings in config.json
. I simply added the following to the interceptor:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ngx-config
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page