Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 27 10:55
    dependabot[bot] labeled #424
  • Jan 27 10:55
    dependabot[bot] opened #424
  • Jan 27 10:55

    dependabot[bot] on npm_and_yarn

    Bump ua-parser-js from 0.7.31 t… (compare)

  • Jan 09 16:15
    dependabot[bot] labeled #423
  • Jan 09 16:15
    dependabot[bot] opened #423
  • Jan 09 16:15

    dependabot[bot] on npm_and_yarn

    Bump json5 from 2.2.1 to 2.2.3 … (compare)

  • Dec 09 2022 03:23
    dependabot[bot] labeled #422
  • Dec 09 2022 03:23
    dependabot[bot] opened #422
  • Dec 09 2022 03:23

    dependabot[bot] on npm_and_yarn

    Bump qs from 6.5.2 to 6.5.3 Bu… (compare)

  • Dec 08 2022 14:35
    dependabot[bot] labeled #421
  • Dec 08 2022 14:35
    dependabot[bot] opened #421
  • Dec 08 2022 14:35

    dependabot[bot] on npm_and_yarn

    Bump decode-uri-component from … (compare)

  • Nov 22 2022 20:55
    dependabot[bot] synchronize #417
  • Nov 22 2022 20:55

    dependabot[bot] on npm_and_yarn

    Bump ini and @angular/cli Bump… (compare)

  • Nov 22 2022 20:55
    dependabot[bot] edited #417
  • Nov 22 2022 20:51
    dependabot[bot] synchronize #417
  • Nov 22 2022 20:51
    dependabot[bot] edited #417
  • Nov 22 2022 20:51

    dependabot[bot] on npm_and_yarn

    Bump ini and @angular/cli Bump… (compare)

  • Nov 22 2022 20:51
    dependabot[bot] edited #417
  • Nov 22 2022 20:50
    dependabot[bot] labeled #420
Allen Kim
@allenhwkim
@briansvgs_twitter there is an example in app directory
briansvgs
@briansvgs_twitter
Awesome. Thanks! Must have missed that in the demos.
Nicholas Cunningham
@ndcunningham
as soon as you can get this webpack thing fixed i will make some PRs :)
Allen Kim
@allenhwkim
@ndcunningham you still can use webpack-dev-server instead webpack-dashboard. You can run the command manually.
Nicholas Cunningham
@ndcunningham
@allenhwkim componentInputChanged and selectNewValue are the two functions that set back the model value?
Zach Roberts
@ZachRoberts25
has anyone had an issue where after trying to implement ng2-auto-complete, your broswer freezes when trying to access the page that the component is under
Allen Kim
@allenhwkim
@ZachRoberts25 I don’t think anyone experienced that. As a designer for the component, I highly doubt it freezes the browser unless it goes an infinite loop.
Zach Roberts
@ZachRoberts25
I am using webpacks, I also experienced this problem when trying to use the other angular2 auto-completer
but if I remove it from my application, I no longer have a problem
I think it is interacting strangly with something in the application so I wanted to see if someone else had this problem to possibly narrow it down
Allen Kim
@allenhwkim
I recommend that you check the focus event of your input element.
For example. when focused or clicked, print something in console.log. My guess is you have an infinite loop on input element. e.g. focus event or click event.
Zach Roberts
@ZachRoberts25
ok I will give it a try
thanks
Allen Kim
@allenhwkim
np
Zach Roberts
@ZachRoberts25
@allenhwkim seems to be associated to assigning [(ngModel)]
Allen Kim
@allenhwkim
@ZachRoberts25 interesting, can you reproduce issue with a plunker?
it might have related to (ngModelChange). I will do my best if you can reproduce issue to fix it.
Zach Roberts
@ZachRoberts25
I can give it a shot
Allen Kim
@allenhwkim
thanks @ZachRoberts25
Allen Kim
@allenhwkim
hi Nico
Nicholas Cunningham
@ndcunningham
hello
Chris House
@crh225
I didnt realize you had gitter set up
Ill start asking my questions in here
Chris House
@crh225
@allenhwkim I think there should be an option to limit the list to the key/value list since the user has to define the value-property-name and display property name.
Allen Kim
@allenhwkim
@CH, I don’t think it’s necessary, but if you want, please make a PR\
Chris House
@crh225
I think it is necessary when you have 100 autocomplete/dropdowns on a page
Allen Kim
@allenhwkim
For that, case, you can build an Observer for all
Chris House
@crh225
or, the library could. :smile:
nice work on the autocomplete! best one we have tested
Allen Kim
@allenhwkim
I think your case is exceptional. Thus, I treat it as exceptional
thanks @crh225
I do not want to taint the module with all exceptional cases. I only handle general cases. For exceptional case, I made several user-definable function. Observer and listFormatter are one of them.
If you want it to be built into the module, you can tell me they are general use cases with an example :)
Chris House
@crh225

my thought process is, a dropdown list is a key/value pair of objects. let say your object looks like:

ddlist: DropDownList{
key: string; // these are unique, but not a guid
value: string;
id: string; //the id will be a guid
visible: boolean; // this could be a different property, as long as it is boolean
}

Im binding to the object ddlist and set the key-property-name=key and value-property-name=value
If I search the autocomplete for the string true then all results show up. if I search for any number, random ones show up because of the guids
another sceanrio. say your keys are number ids...1,2,3 and they are not shown to the user in the list, only the values show up. If the user searches for '1' they get the first item in the list even though the text is not what they wanted. I can make a plunkr if it helps

visible could be a property called enabled. let say, the second autocomplete requires the first autocomplete to be filled out first before it can be enable=true, you search autocmoplete for true, all items show up
three different use cases
Allen Kim
@allenhwkim
@crh225 I assume you haven’t looked at the code yet. It can work as you described, but it does not work on this module.
Chris House
@crh225
I have not looked at the code
Allen Kim
@allenhwkim
@crh225 why don’t you take a look at the code and make some suggestoins with PR based on what you see unless you are a manager.
Chris House
@crh225
Far from a manager. haha.
ill look. I assume you mean a pull request and not a peer review?
Allen Kim
@allenhwkim
pull request, I meant
Chris House
@crh225
blob
Im learning everyday,but why instead of using the word function() you didnt use =>
        let t: string = 'test';
        t.toString = ()=> {
            return 'complete';
        }
in my experience you lose binding to the word this if you use it inside your function if you don't use =>
Chris House
@crh225
which function searches the object?
Allen Kim
@allenhwkim
@crh225 sorry, I can’t answer all your questions since I am currently on day-to-day bill-paying work
Chris House
@crh225
me too