[AngularJS] Type 'string' is not assignable to type 'never'.ts(2322)

2019-04-02 Thread Dev C
Hello I have attached code in VS code which helps to generate dummy data. the basic purpose of having pagination in anguar 6 project. this.collection.data.push( { id: i + 1, // here it gives error Type 'number' is not assignable to type 'never'.ts(2322) value: "items number " + (i + 1) } ); }

Re: [AngularJS] Type 'string' is not assignable to type 'never'.ts(2322)

2019-04-02 Thread Dev C
as any[]} > > Also... Stop using "var" and use "let" instead. Variables defined by "var" > are hoisted and this can have negative effects on your code. > > On Tue, Apr 2, 2019 at 11:59 AM Dev C wrote: > >> Hello >> >> I have attach

[AngularJS] Typeahed and fromEvent after 3 character

2019-03-27 Thread Dev C
Hello I would like to have type ahead ( free text field with binding) where in Api would hit after three character of input ( agular material not required ) and it would retuurm result. I know observable and fromEvent filter we can use, can anyone tell me any example developed. -- Sent from

[AngularJS] Local json file and refer in the service

2019-04-04 Thread Dev C
Hello i have local json file I would to refer in my local service, i know in angukar 6 there is a approach of doing same thing, but don't know how. Any pointers would highly appreciated. -- Sent from my mi note 4 phone. -- You received this message because you are subscribed to the Google

[AngularJS] Server side pagination

2019-04-03 Thread Dev C
Hello Do anybody has server side pagination, wherein everytime on pagination pager i click it should retrieve data from server or Api/end point /cursor based pagination. Any help/pointers would be helpful. Thanks -- Sent from my mi note 4 phone. -- You received this message because you

[AngularJS] Typeahead and searchresult click event

2019-04-01 Thread Dev C
Hello I am having typeahead for the text box, i did accomplished using observable.using keypress and reactive forms. I have following issues. First: The requirement is that after three character the result would appear but it does but only after clicking somewhere outside. Second On click of

[AngularJS] Pagination as reusable component

2019-04-01 Thread Dev C
Hello I have to use pagination in many places in my application, can be it as reusable component. If anyone has any idea or any link would be highly appriciatable. In reusable component i will just bind to service data , number of pages to received at a time. Thanks -- Sent from my mi

[AngularJS] Modal window and dynamic content

2019-04-08 Thread Dev C
I need to have dynamic modal window at many places so i need to have reasonable modal window but the content of the modal should be dynamic , i heard of having ng-content so can have this as reusable content? -- Sent from my mi note 4 phone. -- You received this message because you are

[AngularJS] Type ahead and backend service

2019-03-18 Thread Dev C
I have service which would return 10 results Max for type ahead text box. I would like to hit this service when user types atleast 4 char. What is best way to handle this or if anyone has sample code on this please. -- Sent from my mi note 4 phone. -- You received this message because you

[AngularJS] Re: one Pipe for multiple purpose

2019-03-20 Thread Dev C
Hello Sander, thanks If you can tell me what way i can detect params in customized the pipe ? On Wednesday, March 20, 2019, Sander Elias wrote: > Hi Dev, > > You can add parameters to your pipe to take care of that: > in your template you do something like: > {{ someThing | myPipe:3:1 }} > >

[AngularJS] one Pipe for multiple purpose

2019-03-20 Thread Dev C
I have one customized pipe that does one functioanlity but i would like to same pipe for same purpose but with different decimal values How would i can do that.? Example one pipe does separation of number from given value and return as string but i would like to have same pipe which i need to

[AngularJS] Ngx pagination

2019-04-13 Thread Dev C
Hello I am using ngx pagination and it works well but it shows pagination like PREV 1,220 NEXT I WOULD LIKE TO SHOW ALWAYS THREE CURRENT PAGES LIKE PRev 1,2,3 next and if we click next it should show 2,3,4 and so on at a time three pages only. Thaks Devsur -- Sent from my mi note 4

[AngularJS] ngx pagination and visble page numbers at time

2019-04-14 Thread Dev C
I am using ngx- pagination in my angular 6 application, all well till it comes to number of page numbers visible at a time, I have set my HTML template code as below. but as per attached image it shows 1 .. 10 I dont want such kind of display, I want 1,2,3 at a time and when I click on next to the

[AngularJS] tooltip after few characters [ angular 6 ]

2019-05-17 Thread Dev C
I would like to have tooltip enabled [angular 6 project ]only if incoming string length > 35 characters and then it should have ... elipses as well, On mousehover it would shown tooltip. I know ngbTooltip works but it does not get auto hidden, Can we use directive for this If anybody has such

[AngularJS] tooltip issue and ngbTooltip

2019-05-18 Thread Dev C
I would like to have tooltip appear only if incoming string length is > 35 and also if that is the case add ellipses [...] at the end of the string, I am using angular 6 my main component.html file as below {{data.name}} In My Tooltip component.ts file import { Component, Input, OnInit

[AngularJS] ngrx

2019-05-04 Thread Dev C
hello i want to kearn ngrx, could you please provide me link for this? ( easily understable) thanks devsur -- Sent from my mi note 4 phone. -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group

[AngularJS] NgRx store and errros

2019-05-05 Thread Dev C
Hello ERROR in src/app/app.component.ts(3,10): error TS2305: Module '"C:/Angular Activity/NgRxExample/currency-conversion/src/app/actions/amount"' has no exported member 'AmountChangeAction'. src/app/app.module.ts(6,9): error TS2305: Module '"C:/Angular

[AngularJS] Pagination with server call

2019-04-09 Thread Dev C
I have An Api which returns the data with pager object like page number and page size, everytime i click on pagination control it should goto server and retrieve data based on page i click, so in parameter i will always send http: domain/Api/v1/pagination?pagenumber=1 size=10 Please help if

[AngularJS] Re: Pagination with server call

2019-04-09 Thread Dev C
This don't hit to api.. On Tuesday, April 9, 2019, Tito wrote: > http://jasonwatmore.com/post/2016/01/31/angularjs-pagination > -example-with-logic-like-google > > > > On Tuesday, April 9, 2019 at 9:07:45 AM UTC-7, Dev C wrote: >> >> I have An Api which returns t

[AngularJS] Re: Pagination with server call

2019-04-09 Thread Dev C
I need more like api based. On Tuesday, April 9, 2019, Tito wrote: > http://jasonwatmore.com/post/2016/01/31/angularjs-pagination > -example-with-logic-like-google > > > > On Tuesday, April 9, 2019 at 9:07:45 AM UTC-7, Dev C wrote: >> >> I have An Api which retu

Re: [AngularJS] Is there a way for parent to know if a child in ng-content shows?

2019-08-03 Thread Dev C
Hello peter Can you give a try to refdetectchanges ? Thanks. On Saturday, August 3, 2019, Peter Hsu wrote: > Hi Angular: > > I was given a component called DataTableComponent that can show an array > of objects in a table format. My data sources is are Observables, so I > would like to

[AngularJS] How to set focus list composed from div with *ngFor

2019-09-16 Thread Dev C
Hello, in my angular 6 application I would like to focus list composed from div tag below: I have search box where in usertypes and auto populated div appears wherein if user selects any list it should focus to the list which has been selected, I tried to put #data as below but things are not

[AngularJS] Re: How to set focus list composed from div with *ngFor

2019-09-17 Thread Dev C
I understand that but how about focusing on given element, if you can help.me.with this. May be giving some example. Thanks On Tuesday, September 17, 2019, Sander Elias wrote: > Hi, > > Why are all the `?` in the code? you are inside a ngFor loop, so it's > defined by definition. > Then the

[AngularJS] Re: How to set focus list composed from div with *ngFor

2019-09-17 Thread Dev C
Yes but I have template with div with ngFor. I did same in my example and it is not working. On Tuesday, September 17, 2019, Sander Elias wrote: > Hi Dev, > > > Setting the focus from withing angular is the same as for native js. > > @ViewChild("someTemplateVar") someTemplateVar: ElementRef; >

[AngularJS] Re: How to set focus list composed from div with *ngFor

2019-09-17 Thread Dev C
Thanks Sander @ViewChildren('dataw') rows: QueryList |undefined and in method SetListFocus(){ this.rows.first.nativeElement.focus(); } I did this but not working. On Tuesday, September 17, 2019, Sander Elias wrote: > Well, viewChild returns the occurrence of the template var. ngFor

[AngularJS] Re: How to set focus list composed from div with *ngFor

2019-09-17 Thread Dev C
Also I want to focus the div tag which has been selected by user in searchbox On Tuesday, September 17, 2019, Dev C wrote: > Thanks Sander > > @ViewChildren('dataw') rows: QueryList |undefined > > and in method > > SetListFocus(){ > > this.rows.first.nativeElement

[AngularJS] @ViewChildren and retrive divs span value

2019-09-18 Thread Dev C
Hello I am having below code @ViewChildren('name') names: QueryList In html i have code as from where in i would like to focus on item having name as value which user types in and select from the search box. {{data.name}} -- Sent from my mi note 4 phone. -- You received this message

[AngularJS] Service and big object

2019-07-29 Thread Dev C
Hello We have one service call Onnginit, this would return one object, a possibly 1 mb json object, now i would.like to do paging, filtering & sorting into object, until and unless page gets loaded and we need to hit the service. Now my query is that, i need to do is filtering like amazon from

[AngularJS] angular visual studio line editor

2019-07-28 Thread Dev C
Hello How to move any line where cursor is blinking to up/down in vs code edtior ? any shortcut ? Thanks -- 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,

Re: [AngularJS] Re: multiple pipes and does not work

2019-07-24 Thread Dev C
angular 6 On Wed, Jul 24, 2019 at 11:06 PM Tito wrote: > is this for AngularJS or angular ? > > On Wednesday, July 24, 2019 at 10:19:07 AM UTC-7, Dev C wrote: >> >> >> >> I have above .html file where in sort array does not work, I mean I put >> co

[AngularJS] multiple pipes and does not work

2019-07-24 Thread Dev C
I have above .html file where in sort array does not work, I mean I put console.log in it but it never prints nor it sorts. Thanks -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and

[AngularJS] Re: multiple pipes and does not work

2019-07-25 Thread Dev C
Hello Sendar This helps , also array has name and description, is it possible to search in both rather just in one name ? On Thursday, July 25, 2019, Sander Elias wrote: > Hi Dev, > > Your search pipe expects an object with at least the property name in each > row, and your sort expects an

Re: [AngularJS] Re: multiple pipes and does not work

2019-07-24 Thread Dev C
Hello Sander, below is the code for sort pipe. import {Pipe, PipeTransform} from '@angular/core' @Pipe({ name: "sort" }) export class ArraySortPipe implements PipeTransform { transform(array: Array, args: string): Array { array.sort((a: any, b: any) => { console.log("22") if (a < b) {

[AngularJS] Array concat on ngOnInIt() and does not reflect in template

2019-09-26 Thread Dev C
ngOnInit() { I have array console.log(this.array1) //this shows correct list Second Array(this.array2) // this shows correct list FinalArray =[]; FinalArray =this.array1.concat(this.array2) //I also tried this one This.finalArray = [...this.array,...this.array2] this.ref.detectChanges();

[AngularJS] unit test cases for below snapshot please < Jasmin, Kerma >

2019-10-30 Thread Dev C
ngOnDestroy() : void{ this.destroy$.next(true); } scroller(page:number) { let scroller = document.getElementById("scroll") if(scroller!= null){ scroller.scrollTop=0; } } -- You received this message because you are subscribed to the Google Groups "Angular and

[AngularJS] jasmin kerma unit test cases for scroll and ngdestroy

2019-10-30 Thread Dev C
Hello Can any one help me with below unit test cases. -- 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 angular+unsubscr...@googlegroups.com.

[AngularJS] Re: unit test cases for below snapshot please < Jasmin, Kerma >

2019-11-07 Thread Dev C
Any help on this, can you pls help me writing kerma/jasmin unit test cases for me. > > ngOnDestroy() : void{ > this.destroy$.next(true); > } > scroller(page:number) { > let scroller = document.getElementById("scroll") > if(scroller!= null){ > scroller.scrollTop=0; > } >

[AngularJS] Fwd: unit test cases for below snapshot please < Jasmin, Kerma >

2019-10-31 Thread Dev C
Anyone can help menin this please. -- Forwarded message -- From: *Dev C* Date: Wednesday, October 30, 2019 Subject: unit test cases for below snapshot please < Jasmin, Kerma > To: sanderel...@gmail.com hello sander can you please help me on this please -- For

[AngularJS] Using kerma unit test cases

2019-10-25 Thread Dev C
Hello there, I would like to write unit test cases in kerma, could you please help me any pointer for this ? I would like to have to write unit test cases for a component wherin we have more then one dependent services, ngbmodel, renderer2. Thanks -- Sent from my mi note 4 phone. -- You

[AngularJS] Scroll up on ngb pagination page click

2019-10-22 Thread Dev C
Hello there, I have below code where in my angular 6 application (pageChange)= "loadPage($event)" , I am using loadPage method to scroll up in the table as there 10 records in the table and I need to scroll up to the table to top records. below stuff does not work it does not autoscroll up. I am

[AngularJS] Error: Invalid provider for the NgModule 'DynamicTestModule' - only instances of Provider and Type are allowed, got: [?[object Object]?, ...]

2019-10-29 Thread Dev C
Hello I am writing Unit test cases as below: import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { Injectable, CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA } from '@angular/core'; import { isPlatformBrowser } from '@angular/common'; import { By, BrowserModule } from

[AngularJS] TinyMCE 5.1.3 Rich text editor is not loading in IE 11

2020-04-13 Thread Dev C
I am using tinyMCE 5.1.3 (Angular6 ) (none cloud version ) within the application version, like placing tinymce files, themes under asset folder of angular scaffolding. In my angular.json I have the below configuration:: "assets" :[ { "glob": "/*", "input":

Re: [AngularJS] Reload component child

2020-04-22 Thread Dev C
can you elabore on this ? what do you mean by reload,if you have @Input from parent it will get reloaded automatically or you could use change detection mechanism to enfore update from parent to child. On Wednesday, April 22, 2020, hamza ayada wrote: > How I can reload a child component??? > >