[AngularJS] Re: how to use common Angular code

2017-09-21 Thread Sander Elias
Hi Reza, Currently, there is not really a good story for that. Other as putting the sources files in a linked folder. The CLI will prvide a way to create a library in the future, but that will take a while. There are a couple of really good instructions available on how to build your own

[AngularJS] how to use common Angular code

2017-09-21 Thread Reza Razavipour
I have an application that uses some third party(open source) components for Angular4. I have some typescript code, components and injectables. It all lives in one angular application. There is a second project that is starting and I have the need to use some of existing code from project 1,

[AngularJS] Re: angular js tree view

2017-09-21 Thread Reza Razavipour
I use NgPrime package, the tree control is very feature rich. On Tuesday, September 19, 2017 at 6:30:40 PM UTC-7, explorer wrote: > > hi need some help to craete a tree in angular js plese > -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS

[AngularJS] nested ng-repeat with drop down

2017-09-21 Thread Vishnu Bidarakundi
I have a this JSON data : [ { "product_spec": { "id": 12, "name": "internal_storage", "unit_arr": [ { "unitID": 2, "name": "MB" }, { "unitID": 3,

[AngularJS] Re: Angular 4 - Dynamic html and Dynamic component with AOT

2017-09-21 Thread Arnaud Deman
Hi Sander, Thank you very much for your help, it did it ! If someone else has to do something similar, here are the main documentations I used for the implementation: Creation of dynamic components: Offical Angular documentation about dynamic components

[AngularJS] Re: Add http header to loadChildren http request

2017-09-21 Thread Sander Elias
Hi Brian, This sample is based on http, but you can do something similar for httpClient. HttpClient even has the concept of interceptors that might even simplify this. here we go: import { Injectable } from '@angular/core'; import { Observable } from 'rxjs/Observable'; import { Headers, Http,

[AngularJS] Re: Add http header to loadChildren http request

2017-09-21 Thread Zlatko Đurić
Hi Brian, I think overriding Http or HttpClient won't help with this - Angular uses ResourceLoader to load templates etc. You would need to override that and provide your own implementation. Check this ticket as a starting point: https://github.com/angular/angular/issues/13286 Zlatko -- You