Tagged Questions
0
votes
1answer
15 views
Cannot find module 'true-case-path'
I am not able to run npm start am getting the below error
E:\angular2\projects2018\angularFlex>npm install
> [email protected] install E:\angular2\projects2018\angularFlex\node_modules\node-...
-2
votes
2answers
35 views
Error While Passing Data to Custom Attribute in Angular5
Hi I Want to add JSON data to the Custom HTML Attribute. I Tried Below Format but it Throws Error Element not a Attribute Property of LI.
Here is the screenshot i want to pass data.
http://prntscr....
0
votes
1answer
19 views
angular-cli : Unable to find ngconfig.json
I'm working on AngularJS project. I'm using Ubuntu 16.10.
When I run ng serve command in the project directory, it is throwing below error,
[12:38:02 PM UTC] ERR! Unable to find ngconfig.json , make ...
0
votes
2answers
42 views
How to set if else condition on mouse over function
I need to change the color of the data(text) in the table column when mouse is pointed over on that text. I don't need to change the color in first column of the table.
I implemented following code. ...
0
votes
0answers
20 views
Include external js libraries in Angular CLI project
I have created a project in MVC with several Views and I'm trying to transform it to angular-cli. The thing is that I want to achieve similar script bundle logic with the MVC meaning that I don't want ...
3
votes
1answer
29 views
D3.js Angular CLI, Scope lost in tick() method
Hello guys,
I am trying to integrate a D3 visualization network graph into an Angular CLI project (http://bl.ocks.org/mbostock/1153292) using the ng2-nvd3 component.
Below is the Angular component:
...
0
votes
1answer
175 views
Unable to create Angular 5 project using angular-cli
Even after re-installation can't make ng use angular-cli 1.6
sudo npm install -g @angular/cli --unsafe-perm
/usr/bin/ng -> /usr/lib/node_modules/@angular/cli/bin/ng npm WARN @schematics/angular@0....
1
vote
0answers
74 views
Issue in converting code to angular typescript
i have an application which tokenize the input string depending upon the delimeter entered. My current code works well. But now i am trying to convert my code to angular 2 which makes use of ...
0
votes
0answers
29 views
Turn app.directive angular to typescript directive.ts
Please be indulgent, it's my fisrt post.
I'm writing my first MEAN app and I'd like to use code I've already written.
I'd like to use custom angular.js including an app.directive function, and I'd ...
1
vote
0answers
20 views
Ng build -w and lite-server concurrently
I have server and client part application. The server is nodejs + express, which serves static HTML from the public folder. In public folder is built Angular 2 application - ng build with the ...
0
votes
2answers
116 views
Error: Can't resolve 'child_process' Angular-cli
I generated a new application using angular-cli and added few components. I haven't added any test cases. when I try to run/build the app, I get the following lengthy error message:
ERROR in ./...
0
votes
0answers
65 views
How to install ng on elastic beanstalk
I am new to elastic beanstalk, I am trying to deploy my angular-cli app on node.js elastic beanstalk. I am getting following error.
/var/log/nodejs/nodejs.log
-------------------------------------
...
1
vote
0answers
33 views
Custom Angular setup for MIT library/project
Hi I need your help trying to figure it out something.
First a little background, I was used to code in Django, it was fast to code and good, but times change and Node is taking over most of new apps,...
0
votes
2answers
42 views
how to put script to angular component
I have some project on Angular CLI. So I need to put some scripts to a component but it seems they arent there
my code in the component:
<script src="//vk.com/js/api/openapi.js" type="text/...
0
votes
0answers
31 views
How to append or push the data into table using angular cli
I am new in angular cli.I am trying to append data into table but i do not know how to append data into table using angular cli.
I have three array.how to append or push to the table that array values....
0
votes
1answer
55 views
after re-install angular/cli: Module build failed: TypeError: Cannot read property 'newLine' of undefined
I have an angular-2 app.
I try to run ng serve but get this error:
ERROR in ./src/main.ts
Module build failed: TypeError: Cannot read property 'newLine' of undefined
at Object....
-4
votes
3answers
156 views
Difference between Angularjs and angular [duplicate]
What is the Difference between Angularjs and angular(eg. cli and versions)?
I want to work Angular but I don't know differences for select one of them. I googled but don't explicitly mention ...
0
votes
0answers
37 views
Angular CLI ng Build error 'browser' doesn't contain a valid alias configuration [duplicate]
When i run Angular CLI and serve it by ng serve it works fine.
NPM install downloaded all packages.
Following is my tsconfig files:
{
"compileOnSave": true,
"compilerOptions": {
"outDir": "....
1
vote
1answer
51 views
Can't Find JQuery When Running 'ng test' Command
I have created a project using new angular-cli version and I made the project up and running. When I run ng serve and ng build command it works perfectly without giving any errors. But when I tried to ...
0
votes
0answers
24 views
Can you use a constant field as the templateUrl of a Component when using angular-cli and karma?
I have the following component definition:
@Component({
templateUrl: TemplateUrlConfig.ComponentUrl,
selector: 'selector-name',
})
where TemplateUrlConfig is defined as:
export var ...
-1
votes
2answers
36 views
Why we need to use angular cli?
Hello everyone I want to learn angular, but I am bit confused like what is the use of angular cli ?? why I need to write 3 different files like app.html app.component.ts and app.module.ts ? instead of ...
1
vote
0answers
98 views
Enabling Hot Module Replacement with Angular 2 Upgraded App
We're using the upgrade adapter to setup an Angular 1/2 Hybrid app. We're bootstrapping the app like this (As described in the Angular docs https://angular.io/guide/upgrade):
class AppModule {
...
2
votes
2answers
111 views
How does git relate with npm? | npm ERR! Failed using git. | material.angular.io
Angular 4 cli, I run this command to install Angular Material (npm install --save angular/material2-builds angular/cdk-builds) but it is showing an error as followS:
npm ERR! No git binary found ...
0
votes
1answer
64 views
Node: run npm server and proxy in different folders with one command?
We currently have a project with a server folder and a client folder.
To run the project we have to cd to server folder, type npm run nodemon then, in a new Terminal tab/window, switch to the client ...
0
votes
1answer
15 views
Using HashLocationStrategy with Adal causes infinite routing
In in my angular cli app I'm using adal-angular4 for login authentication. When deployed in Azure the app works fine when the routing starts from homepage with the login flow. But refreshing the page ...
0
votes
1answer
107 views
angular-cli form validations
This is the output of my code that i excuted with below codes
My problem is that i am unable do validations here.. after clicking the AddEmployee button even without any data in it.. it is getting ...
-1
votes
2answers
641 views
The “@angular/compiler-cli” package was not properly installed. Error: Cannot find module '@angular/compiler-cli'
When trying npm start or ng serve it shows the error like this :
The "@angular/compiler-cli" package was not properly installed. Error: Error: Cannot find module '@angular/compiler-cli'
Error: ...
-1
votes
1answer
112 views
can't run `npm install -g angular/cli`
I've recently generated a new ssh key on my mac and I can't seem to install angular/cli anymore. When I try to run npm install -g angular/cli I get this error:
npm ERR! Error while executing:
npm ERR!...
0
votes
1answer
28 views
Angular CLI build file size output shown not matching with actual on disk
I am using Angular CLI (1.2.6) and Angular(4.3.2) and running following command
ng serve --aot --prod --proxy-config config/proxy.config.json
Or
ng build --aot --prod --proxy-config config/proxy....
0
votes
0answers
345 views
Angular CLI , Node v8 and npm 5. Issue while installing packages in restricted network environment
I have upgrade my nodejs to v 8.1 and using npm 5, For Angular CLI latest
$ node --version && npm --version
v8.1.4
5.0.3
While running installation command I am getting below exception.
...
0
votes
2answers
140 views
Bootstrap collapse initially show/hide
I am practicing Bootstrap 3 on an Angular app.
For some buttons, I want them to hide themselves when open the webpage on the mobile, and show them when open webpage on a laptop.
As far as I know, ...
3
votes
1answer
131 views
How to include all .less files in angular-cli.json styles section?
So the problem I have is that each time after I create a new component, I have to remember to add it's .less stylesheet to angular-cli.json file. What I'd really like to have is to somehow tell ...
1
vote
1answer
50 views
Creating an IntelliJ Run Configuration for Angular and WebLogic
I'm trying to create a run configuration in IntelliJ that will build my projects and run both ng serve (Angular CLI) and WebLogic Server simultaneously. I have installed the Multirun plugin in ...
0
votes
2answers
68 views
Angular4 + Angular CLI supporting Javascript AngularJS?
Is it possible to get angular4 + angular CLI to support Javascript files?
I have a legacy angularJS application written in javascript that I want to import components from in my Angular4 ...
0
votes
0answers
117 views
Switch to different port automatically if port 4200 is already in use angular CLI
is there any way to switch the port to a different one automatically when port 4200 is already in use. right now I am killing the process and use the same port.
"Port 4200 is already in use"...
0
votes
1answer
610 views
Property 'kendoGrid' does not exist on type 'JQuery<HTMLElement>
I am using VSCode editor for my angular project development. VSCode intellisense is working fine with @typings/kendo-ui. But, Webpack compilation failed due to the error.
Error:
"Property '...
1
vote
1answer
210 views
build angularjs 2 with angularjs-cli on codeanywhere
I am getting invalid host header problem while i am trying to server my application by ng serve --host 0.0.0.0 . I have tried the following.
1.install -g angular-cli
2. cd to that app-directory
3. ...
2
votes
0answers
246 views
Is Angular CLI compatible with Angular JS [duplicate]
We are in process of upgrading our Angular JS application to the new Angular (Angular 4) framework. The strategy we have devised is that we first convert Angular JS stuff from javascript to typscript ...
0
votes
1answer
69 views
Converting to TypeScript files for AngularJS app
I have a large AngularJS app which I am in the process of upgrading (with NgUpgrade, webpack etc.) To start with, my new Angular (4) components are .ts files but my old AngularJS parts are .js files, ...
0
votes
0answers
454 views
node.bittrex.api in angular-cli
I'm tryingto read the api of bittrex and to import the library node.bittrex.api to angular-cli. I try
import { Component, OnInit } from '@angular/core';
import * as bittrex from 'node.bittrex....
1
vote
0answers
64 views
Angular-CLI AngularJS + Angular with Kendo UI
I trying to make an AngularJS + Angular4 Hybrid Project with Angular-CLI.
Surely i'm not alone with this approach... :)
So far I'm struggeling to include Kendo UI for JQuery in the CLI Project.
Why ...
2
votes
1answer
458 views
How to get ng serve to work with host name on a VirtualBox Docker set up
My set up:
Windows 10 running virtual box with Ubuntu 16.04 running a docker container with @angular/CLI: 1.1.3
node: 6.11.0
from which ng serve is called to run an angular 4 application
On my ...
-3
votes
1answer
119 views
How to load images saved in a shared folder in Angular?
<img width="118px" height="180px" src="{{book.imageUri}}" />
book.imageUri="\\someServer\images\9780352347893.jpg"
It didn't work out on the Angular page but if copy that image uri into chrome ...
0
votes
0answers
56 views
Automatically update Angular page on new JSON information
I have a news app that calls information from a service. I would like to make it so that, when there is news, this is automatically added to the page.
At first, I was trying to do it by using a this....
3
votes
0answers
118 views
Angular CLI: Inject css on Sass compile without full reload?
We have our Angular 4 app scaffolded with angular cli, using scss as the default styling. We run the app with
ng serve --sourcemap --extractCss -o
To get scss source maps. This works fine, app ...
0
votes
0answers
16 views
Scripts works only one time in Angular-CLI project
I have datatables in my angular 2 project, i included the related scripts in the .angular-cli.json file, because inserting them in the index.html didn't work.
When i start the angular project with ...
0
votes
1answer
54 views
why doesn't linked theme work with angular material app? (but import does)
Creating an app with the angular-cli, if I link the Material theme from my index.html (following instructions from https://getmdl.io/started/):
<link rel="stylesheet" href="https://code.getmdl.io/...
1
vote
0answers
28 views
Error on add external css in augular-cli.json file from AWS s3 or CDN
I want to include css file from s3 but project failed to compile
Module not found: Error: Can't resolve '/Users/WebstormProjects/ra_management_frontend/src/http:/myurl/ra-management/assets/css/font-...
0
votes
0answers
53 views
My dynamic data not loaded on protractor test
I work on the tests e2e of my project angular cli.
I started to define tests, but it seems to me that the data to be recovered after API calls are not loaded, so I can not test them.
How can I make ...
0
votes
2answers
721 views
How do I install angular-cli on ubuntu 16,04?
I'm facing an issue installing angular-cli locally. I'm on Ubuntu 16.04.2 LTS with following versions of node.js and npm:
node: v7.10.0
npm: 3.10.10
I tried to install angluar-cli using the ...