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)
}
);
}
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
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
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
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
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
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
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
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
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 }}
>
>
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
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
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
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
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
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
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
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
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
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
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
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
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
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;
>
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
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
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
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
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,
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
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
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
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) {
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();
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
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.
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;
> }
>
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
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
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
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
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":
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???
>
>
43 matches
Mail list logo