Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Nov 16 23:43
    JoseRobertoECJr starred angular/angular
  • Nov 16 23:25
    JoostK review_requested #33878
  • Nov 16 23:25
    JoostK ready_for_review #33878
  • Nov 16 23:25
    JoostK labeled #33875
  • Nov 16 23:25
    JoostK review_requested #33875
  • Nov 16 23:25
    JoostK ready_for_review #33875
  • Nov 16 23:10
    JoostK synchronize #33875
  • Nov 16 23:07
    simeyla commented #22125
  • Nov 16 23:07
    JoostK synchronize #33878
  • Nov 16 23:06
    simeyla commented #22125
  • Nov 16 23:06
    JoostK edited #33878
  • Nov 16 23:06
    JoostK edited #33878
  • Nov 16 23:05
    simeyla commented #22125
  • Nov 16 22:59
    googlebot labeled #33878
  • Nov 16 22:59
    ngbot[bot] milestoned #33878
  • Nov 16 22:59
    JoostK labeled #33878
  • Nov 16 22:59
    JoostK labeled #33878
  • Nov 16 22:59
    JoostK labeled #33878
  • Nov 16 22:59
    JoostK labeled #33878
  • Nov 16 22:59
    JoostK labeled #33878
Like I said doesn't seem like a good idea, but if you have to do it something like that
Segi
@SegiH
thats not what i am trying to do
I know how to make it work if you import the routes in app module using RouterModule.forRoot([
nm
I'll just leave the route object outside of the data service
Irv
@ilennert
Anyone with opinions on this? I'm using GraphQL to talk to the service API. My app also uses NGRX. My mutations all return an object that represents exactly what was added/created through the mutation. I have, at that point, been applying it to the state of the through the effect that started the whole thing off. Now I'm also starting to use the subscriptions, of which I have one for every mutation and it returns the same data
So on the client where the user entered the data I get duplicates in the state
I'm not sure if I should just ignore the return on the mutation and just update the state on the subscriptions or what...
Joe
@foxjazz
is there an example of how to list components horizontally (display : inline) doesn't seem to apply
DrewMoody
@DrewMoody
@foxjazz display: flex defaults to row.
elmarou
@elmarou
Hi everyone, haw can validate complex password using angular _
8
Brad
@bradtaniguchi
@elmarou What do you mean by "complex password" and validate? Like make sure the given password matches creteria (length, includes a none character, etc)
elmarou
@elmarou
@bradtaniguchi how can i verify whether the password contains uppercase lowercase number and a character
Brad
@bradtaniguchi
@elmarou I suggest either using the built-in Pattern validator, or build your own custom validator
Just a friendly reminder, be sure to validate the password on the back-end like any validation, client validation is more for user experience than actual security
Brendan Ingham
@brendan.ingham_gitlab

How can i animate a transition between the same component ( via a router )

the way i have my route set is that we just re-use the same component, and get different data using a route resolver. this is used for a category page, with an unlimited number of sub categories (e.g cat one has 2 subcats, one of the subcats has more ... etc)

the standard page transitions aren't working, because the component isn't being recreated, and a new one is not being created.
Brad
@bradtaniguchi
One ghetto approach is to change the router so it re-creates the component anyways
Brendan Ingham
@brendan.ingham_gitlab
What do you mean, change the router?
I've had enough trouble with aux routes I don't wanna make it cry(or myself) further
Brad
@bradtaniguchi
No, I believe there is a setting on the router to re-render a component if routed to the same route
Brendan Ingham
@brendan.ingham_gitlab
Ohh, yeah I'll do that
Brad
@bradtaniguchi
by default it doesn't (for performance) but if you wanted it to re-render anyways (like for animations, clearing state, etc) you can change that behavior
I think it has something todo with this: https://angular.io/api/router/RouteReuseStrategy
I could be wrong, I'm going off the top of my head hear, but might be worth looking into
Damien Retzinger
@damienwebdev
If I have two ngModules that have the same provider and I import the modules into another module, which one's provider wins in that modules injection hierarchy?
Is it the one defined later?
E.g.
imports:[
...
ModuleWithProvidersA
ModuleWithProvidersB
]
Does A or B win?
Alex Rickabaugh
@alxhub
Yes, the one that comes later, so B :)
Damien Retzinger
@damienwebdev
@alxhub awesome, thanks.
Erik
@erik777
is there a way to instantiate HttpHeaders with a [string, string][] or a Map<string,string>?
Brad
@bradtaniguchi
@erik777 You could probably use a conversion function that takes one of those to get them to a plain {}
Erik
@erik777
yeah, i ended up writing one... mapToHttpHeaders
Karthi
@Karthi-SRV

Hi

is there any option to upload folder in angular without using webkitdirectory?

or is there any option to remove the waring message while upload via webkitdirectory ?
Lazar Ljubenović
@lazarljubenovic
@Karthi-SRV that has nothing to do with angular
Erol
@FrEaKmAn
hi, does anyone know if it's possible to prevent scroll to top for certain routes using angular router?
SAGO
@SAGOlab
Hi there! I have a text with some placeholder like "lorem ipsum dolor sit amet [{text}], foo bar [{anotherText}], bla bla bla...". I need to replace all text inside square and graph bracket with custom input, there is some text parser that you can suggest me to reach this goal?
broweratcognitecdotcom
@broweratcognitecdotcom
@SAGOlab String.replace
SAGO
@SAGOlab
@broweratcognitecdotcom thanks a lot, so there's not npm package, or library, or something similar uh?
broweratcognitecdotcom
@broweratcognitecdotcom
@SAGOlab For a string replacement? ... what do you need a library or package for? what does String.replace not do that you need???
yayne
@yayne
Hello friends, I am trying to edit inline table with select option by using angular 7. I have already an API however I can't send the api by choosing one option from the select tag to edit ? Can someone give me a help? thanks
SAGO
@SAGOlab
@broweratcognitecdotcom yes, but if there was something that recnognize a variable from a text and extract it automatically would be useful
but, no worry, if not exist I'll use the good old way of programming. ;-)
Jorrit
@jorrit-wehelp
@SAGOlab there are many many 'templating' libraries on npm... But it really depends on what the source and the used syntax/features is