[AngularJS] Re: Angular 2 HTTP service(GET)

2017-10-02 Thread Sander Elias
Hi Chandanesh, Sure, but did you try searching for an answer ? ;) I feel like I answered this one before... ;) This is a

[AngularJS] Angular 2 HTTP service(GET)

2017-10-02 Thread Chandanesh KC
I want to fetch some credenstials from web server using GET method but am encountered with following error: "Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:4200' is therefore

[AngularJS] Re: question about dynamic dependency injection

2017-10-02 Thread Sander Elias
Hi Reza, Of course you can write a service that returns the right one, based on a configuartion time setting. Another way is to use the injector for this , and swap out the implementation during config. Reg

[AngularJS] Re: question about dynamic dependency injection

2017-10-02 Thread Reza Razavipour
Let me be more specific on how I want to use this. I want to be able to create and instance of, lets say the RESTCommunicationService, and have gridService = new GridService(); gridService.configure(new RESTCommunicationService()) // http is dependency for the RESTCommunicationService On Mon

[AngularJS] question about dynamic dependency injection

2017-10-02 Thread Reza Razavipour
I have an angular 4 application. I need to dynamically inject dependencies in my services or have customizable services. So currently I have a GridComponent with a GridService injected to it @Injectable() GridService... constructor(gridService: GridService)... What I need is to customize som

[AngularJS] Re: bypassSecurityTrustHtml stripts angular form tags

2017-10-02 Thread Zlatko Đurić
Well, you didn't add formsModule to your *dynamic* module :) Try this: https://plnkr.co/edit/vEEQECofC7qfvCYCJ4bg?p=preview -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop receiving

Re: [AngularJS] Re: bypassSecurityTrustHtml stripts angular form tags

2017-10-02 Thread Turkel
Code is updated, on my previous I havent binded compiled one into HTML. I am getting following error now: Template parse errors: There is no directive with "exportAs" set to "ngForm" ("]#f="ngForm"> Password I have imported FormsModule, ReactiveFormsModule into module.ts but seems like c

Re: [AngularJS] Re: bypassSecurityTrustHtml stripts angular form tags

2017-10-02 Thread Turkel
It is not generates forms but shows all source code of form. I have crated new project and removed all extra and added only remote fetcher of form. updated on pastebin. may be it is not compiles or bypasses this form :S I have tried all possible outcomes, change code on many ways no luck. Templ

[AngularJS] Abstraction over Angular2 lifecycle hooks

2017-10-02 Thread Rahul Tiwari
Hi, I am trying to implement an abstraction over angular 2 life-cycle methods to make it any up-gradation easy in future. Idea is to create a BaseComponent class which will implement angular2 provided lifecycle methods and my other component will extend this class and override existing method

[AngularJS] Re: Anguar 2 form building validation inq

2017-10-02 Thread Sander Elias
Hi Dawg, Should work. Are you sure the testValue is initialised before your call to buildDetailsForm? You can quickly check that by logging it out in the function body. Regards Sander -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussi

[AngularJS] Re: Filtered search box

2017-10-02 Thread Sander Elias
Hi Keith, Store your filter in a service, and load them when you come back. If you want to store them between sessions, you might even want to use localStorage Regards Sander -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group.