[AngularJS] Re: Angular 6: Can't get the child route to load in the router outlet.

2018-09-28 Thread Adam Frank
So it took me a long time to get around to this, but I finally implemented the changes. A few issues persist: First, this fix loads "Prehistory" underneath "Home" whereas I wanted Prehistory to replace Home. The second issue is that when you click on Prehistory and hover over the link, it

[AngularJS] Re: Problem after inheritance

2018-09-28 Thread Sander Elias
Hi Partha, You should try to stay away from inheritance as a paradigm. While it works, it has a tendency to create hard to maintain apps. The paradigm is too easy to abuse, and add extra "levels" in the inheritance chain. This makes really hard to debug issues. (I could make a snarky remark

[AngularJS] Re: AngularJS sometimes does not update view during navigation

2018-09-28 Thread Sander Elias
Hi Ranganathan, Are you using AngularJs's router or something else? Regards Sander -- 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 emails from it, send an email to

[AngularJS] Re: Angular 5 is not working in IE11

2018-09-28 Thread Sander Elias
Hi Amit, Angular 5 works without a hitch in IE11. Uncomment all the polyfills that are in the aptly named polyfills.ts and it will work. However, if you loaded 3rth parties, or wrote things yourself that are incompatible with IE11, you need to fix those. You can check this by using ng new

[AngularJS] Re: [(ngModel)] value from json

2018-09-28 Thread Sander Elias
Hi Celgueta, I assume the metadata lists the property names you want to use. where are those properties stored? in there destination is the target object where your data is going to end up. Is this what you are looking for? Regards Sander ​ -- You received this message because you are

[AngularJS] Re: Insert dynamically create component after clicked row

2018-09-28 Thread Sander Elias
Hi Janek, I agree with Riccardo that this is a very complex scenario. If you are trying to insert rows on a certain place, it’s much easier to do with array manipulation. If you are really want to insert other components based on something in the row data, your mistake is that you are using

[AngularJS] Angular 5 is not working in IE11

2018-09-28 Thread Amit Shaw
Hi All, My Angular 5 application is not working in IE11 browser. I have searched and got some solution like uncomment all the import of polyfill.js file, Install classfill.js ,add some script and all. But nothing is working. Please help me to fix this issue. Thanks in advance. Regards Amit --

[AngularJS] Re: Insert dynamically create component after clicked row

2018-09-28 Thread Riccardo Sadocchi
Hi Janak, i think this is a very complex strategy, you can use a component with a table binded in a simple array of object with the data you need, on click you can add an object to the array and the table update dynamically public dataViewModel:{col1:string, col2:string, col3:string} [] = [];

[AngularJS] Re: [(ngModel)] value from json

2018-09-28 Thread Riccardo Sadocchi
Hi, try the changes below > > > ="inputs.metadatas.indexOf(input)" > name="'name_' + inputs.metadatas.indexOf(input).toString()"> > > > > I'm not sure it works, and is not the right way, you should use a > FormGroup (no ngModel) and in the html

[AngularJS] Re: Angular6 Material Dialog passing data

2018-09-28 Thread Riccardo Sadocchi
Hi try the changes below > > > @ngModule: > ... > > entryComponents: [DeleteDialogComponent] > > myComponent: > > openDialog(){ > let dialogRef = this.dialog.open(DeleteDialogComponent > , { > width: '250px', > data: {deviceToDelete: this.selectedDevice} > }); > >

[AngularJS] Re: how to set focus to a specific eleent

2018-09-28 Thread Riccardo Sadocchi
Hi Jose, you can try to bind the html autofocus attribute to a boolean value Il giorno giovedì 27 settembre 2018 20:51:25 UTC+2, José Vilmar Estácio de Souza ha scritto: > > Hi all. > > Probably a dumb question, but how can I set focus to an element using > angular 6? > > I'd like to set

[AngularJS] Re: angular 6 - Lost username when refresh F5 (but still logged)

2018-09-28 Thread Riccardo Sadocchi
Hi Belén, i think you can resolve whit a simple variable in your service. Try some changes // AuthenticationService: // currenUser$: Subject = new Subject(); public currentUser:User; // in the map on success this.currentUser = user; //in ngOnInit of AppComponent if

[AngularJS] angular 6 - Lost username when refresh F5 (but still logged)

2018-09-28 Thread Belen Martin
Hello, I had used (JWT) authentification with tokens for login in angular 6. The authentication works fine but I lost nameuser in toolbar when I refresh with f5. Anyone knows what it's happend? *here is the: auth.guard.ts* import { Injectable } from '@angular/core'; import { Router,

Re: [AngularJS] Re: how to set focus to a specific eleent

2018-09-28 Thread José Vilmar Estácio de Souza
Hi  Sander. Thanks for your reply. I did not elaborate my question correctly. I would like to focus on a field in a programmatic way. After loading the form, I would like to focus on one field or another based on some conditions. On 9/28/18 10:17 AM, Sander Elias wrote: Hi Jose, Not

[AngularJS] Re: how to set focus to a specific eleent

2018-09-28 Thread Sander Elias
Hi Jose, Not angular related, but you can do it by putting the html autofocus attribute on the input you want to focus too. Regards Sander. -- You received this message because you are subscribed to the Google Groups "Angular

[AngularJS] passing data using entryComponents

2018-09-28 Thread chebihi hichem
Hi, I'm using entryComponents to pass the data from my component to Material dialog component in Angular 6, The problem is that the object type is not recognized in my dialog omponent: @ngModule: ... entryComponents: [DeleteDialogComponent] myComponent: openDialog(){ let dialogRef =

[AngularJS] Angular6 Material Dialog passing data

2018-09-28 Thread chebihi hichem
Hi, I'm using entryComponents to pass the data from my component to Material dialog component in Angular 6, The problem is that the object type is not recognized in my dialog omponent: @ngModule: ... entryComponents: [DeleteDialogComponent] myComponent: openDialog(){ let dialogRef =

[AngularJS] AngularJS sometimes does not update view during navigation

2018-09-28 Thread ranganathan . pro
I am working on an application that uses AngularJS for front end and uses ASP.NET web api for backend. The application has an login page UI (user name , password etc) and also a sidebar and menu bar which are hidden until the user logs in. Just after authentication I am also retrieving some

[AngularJS] [(ngModel)] value from json

2018-09-28 Thread celgueta
Hello to every one, Im generating inputs fields names from a json file, I want dynamics fields, but I cant assign a value to [(ngModel)] I have this error Uncaught Error: Cannot assign to a reference or variable! at _AstToIrVisitor.push../node_modules/@angular/compiler/fesm5/compiler.

[AngularJS] Re: Inheritance and Generics

2018-09-28 Thread Zlatko Đurić
Hard to say without looking at the code. I assume you've called super() somewhere which calls the parent's constructor, sets up the "roleService"? If you share the code, somebody might help you. On Friday, September 28, 2018 at 9:22:12 AM UTC+2, Partha Majumdar wrote: > > Thanks Sir. > > I

[AngularJS] Re: Inheritance and Generics

2018-09-28 Thread Partha Majumdar
Thanks Sir. I tried the same. After inheriting I am getting the following error. ERROR TypeError: this.roleService.getData is not a function at AppRoleListComponent.push../src/app/role/role-list/role-list.component.ts.AppRoleListComponent.ngOnInit (role-list.component.ts:41) at

[AngularJS] Problem after inheritance

2018-09-28 Thread Partha Majumdar
Dear Sir/Madam, My program was working perfectly. Then I decided to forma base class as I could generalise. There is no error in the code and it compiles perfectly. However, when I run it, it gives this error. ERROR TypeError: this.roleService.getData is not a function at

[AngularJS] Inheritance and Generics

2018-09-28 Thread Zlatko Đurić
In short, yes, you can extend a TypeScript class or implement an interface, and you only need to import the class in the component itself. You can even import a class from a library in your Node modules folder. But there are two things to be aware of: - you have to make sure that the