[AngularJS] Re: How to force Angular 2 [(ngModel)] change after changing input value with Javascript?

2019-02-05 Thread Sander Elias
Hi Harsal, No, a `@Hostlistener()` is not going to be able to handle this. I think you are best off with a small helper directive, that uses the abstractControl import { Directive, DoCheck, Self } from '@angular/core'; import { NgControl } from '@angular/forms'; @Directive({ // tslint:disable-n

[AngularJS] Re: How to call a report via URL in Angular 6

2019-02-05 Thread Sander Elias
Hi Knight, So the report is a PDF file generated by your server? What is it you are trying to do with it? Let the client download, or show on screen? if its a PDF, you need to convert it back to file object using a BLOB, and then put it in a iframe, or make it available for download by putting

Re: [AngularJS] Re: When i create new project and tired to ng serve showing this error ERROR in Could not resolve module @angular/core

2019-02-05 Thread Sander Elias
Hi Sourav, Hm, that is strange. Are you sure you didn’t use the —experimentalIvy flag? It still sounds like a corrupted package somewhere. Start off with removing the node_modules folder, then removeyarn.lock and/or package-lock.json After that run npm cache clean before you run npm install agai

[AngularJS] How to force Angular 2 [(ngModel)] change after changing input value with Javascript?

2019-02-05 Thread Harshal Carpenter
I am trying to replace Japanese half-width characters to full-width characters. ウ -> ウ So whenever a user types in half width, we have to convert to full width automatically. Obvious solution would be to design a directive to change the ngModel on keypress. But we have a huge codebase and I

[AngularJS] Re: How to call a report via URL in Angular 6

2019-02-05 Thread Knight
Hello Sanders This is the url which returns a report if we paste the url in the browser. *http://SERVERADDRESS/jasperserver-pro/rest_v2/reports/REPORT.PDF?PARAM1=VALUE&PARAM2=VALUE* To program this, i plan to use angular as front end to open a pop up and allow the user to input the 2 values.

Re: [AngularJS] Re: When i create new project and tired to ng serve showing this error ERROR in Could not resolve module @angular/core

2019-02-05 Thread Sourav Halder
Thanks for your response. I have already run ''npm install' but still showing same. On Tue, Feb 5, 2019 at 9:57 PM Sander Elias wrote: > Hi Sourav, > > Hmm, I have seen this on Ivy projects, not in normal ones. > Also, it might happen if `npm install`, or `yarn` didn't complete the full > insta

[AngularJS] Re: When i create new project and tired to ng serve showing this error ERROR in Could not resolve module @angular/core

2019-02-05 Thread Sander Elias
Hi Sourav, Hmm, I have seen this on Ivy projects, not in normal ones. Also, it might happen if `npm install`, or `yarn` didn't complete the full install. Regards Sander -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To un

[AngularJS] When i create new project and tired to ng serve showing this error ERROR in Could not resolve module @angular/core

2019-02-05 Thread sourav . ion
When i create new project and tired to ng serve showing this error ERROR in Could not resolve module @angular/core please help me out anyone how to fix it, any help would be appriciated info: Angular CLI: 7.3.0 Node: 10.15.1 OS: win32 ia32 Angular: 7.2.3 ... animations, common, compiler, compil

[AngularJS] Need help in Protractor code

2019-02-05 Thread Indrajit Mullick
Hi, I am learning Protractor to automate our GUI automation. Currently, I am trying to aurtomate the MS-Dynamic CRM GUI steps. I am unable to handle the popup which is opened with the URL. it's still opened. I have used : browser.getAllWindowHandles().then(function(handles){ browser.driver.

[AngularJS] Re: retrieving ElementRef within an event handler

2019-02-05 Thread Stéphane Ancelot
I finally ended as follow : since this keyword can not be accessible to access component class methods from the event handler, I had to keep a reference to it . const reference = this; xstart : number; function dragstarted(d) { .. reference.xstart = d3.event.x; } d3... .on("start