All Questions
Tagged with angular5 angular-cli
178
questions
0
votes
1
answer
2k
views
Not able to run exisitng angular project - Local workspace file ('angular.json') could not be found
I am not able to run an existing project and getting an error "Local workspace file ('angular.json') could not be found."
my package.config having these values(not a complete file)
{
"name": "xx",
...
0
votes
1
answer
694
views
ERROR in Error: The translation file (src/locale/messages.fr.xlf) locale must be provided
I am trying to create individual packages for each language.
I have used the below command for my angular 8 application which works fine. But when I use the same command in Angular. The translation ...
0
votes
1
answer
389
views
Angular-Cli set default path for live reload during development of the application
I am using "ng serve" to run my angular project(Angular 5), --liveReload is currently active that reloads the app whenever a change is saved. I need my application to always reload from the base path ...
0
votes
0
answers
39
views
Script bundles with 6MB loading failed in IIS deployment
Can we split Script section in angular-cli.json or reduce scripts bundle size
can we split scripts section in to
"scripts1": [],
"scripts2":[]
i'm having an issue with loading more than 6MB script ...
0
votes
2
answers
212
views
Angular5: IE caching js bundles
I have my angular5 application which is built using angular-cli. When I build the app and deploy it everything works fine. But when I deploy a new version and the load the page, IE is still showing ...
0
votes
2
answers
3k
views
ng add is not working for ngx-bootstrap using angular 5
I m trying to integrate ngx-bootstrap with angular5 and trying to add its components.
ng add ngx-bootstrap --component alerts
It's throwing error:
The specified command add is invalid. For ...
0
votes
0
answers
29
views
Angular5/6: IE uses old build and doesn't fetch latest build
I have an angular application that I have been developing with angular5. When I make changes and deploy it on a server, Chrome is able to fetch the latest build with clear cache/cookies. But for IE, I ...
1
vote
0
answers
164
views
Check the presence of browser cookie and re-direct page to home Angular 6/7
I need help with piece of code.
Check the presence of a browser cookie
If the cookie is not present, re-direct to a specific URL (stay on the page/do nothing if the cookie is there).
I assume it can ...
2
votes
1
answer
936
views
Angular 5 project is unable to upgrade in to Angular 7
My current Angular cli Version is 1.6.6 and
Angular Version is 5.2.2
I am trying to update it to Angular 7 and new angular cli version is 7.3.6
When I try to upgrade using ng update @angular/cli, an ...
1
vote
1
answer
847
views
Angular 5 Load CDN script tag from Angular-cli.json
I am using Angular 5 for the project.
My index.html looks like this :-
<html lang="en">
<head>
<meta charset="utf-8">
<title>PDL Web</title>
<link href=...
3
votes
2
answers
2k
views
Angular 5 - Dev/QA build using ng build with uglify and minify (like ng build --prod)
I am using angular5 and angular-cli and have requirement to uglify/minify code which can be viewed in inspector tool of browser.
My angular-cli.json has:
"environmentSource": "environments/...
0
votes
2
answers
955
views
ng-serve proxy config option not working as intended
Starting server as
ng serve --proxy-config proxy.conf.json
the content of prox.conf.json
{
"/api": {
"target": "http://url.com",
"secure": false,
"pathRewrite": {"^/api" : ""}
}
}
...
0
votes
0
answers
173
views
Angular 5 removes (click) event on html
So, I have this code:
<a type="button" class="btn btn-sm btn-primary btn-link" (click)="show = !show">Toggle</a>
but when the code renders, HTML this is how it looks in the Dev Console
&...
13
votes
6
answers
31k
views
Disabling console.log() in production
I have run the following to disable console logs for production environments in my angular application. The below code works as expected for chrome, however, it still shows logs in IE 11.
main.ts
...
0
votes
1
answer
191
views
Angular-cli only register component
I have an angular project as base project and i have some dynamic generated html, scss and ts code that i want to "merge" or introduce into that base project. I mean, i have the component code ...