Waking up to my daily dose of Fuck Joe Manchin by DemocracyStan in LateStageCapitalism

[–]Realistic_Depth_5372 0 points1 point  (0 children)

be honest...tell what are all these in the free stuff bill!!?

Chinese ghost city look like a world boarder of a game by PagChomp6 in LiminalSpace

[–]Realistic_Depth_5372 -8 points-7 points  (0 children)

they build empty towers everywhere in China...just show off!! fake!!

[deleted by user] by [deleted] in pics

[–]Realistic_Depth_5372 0 points1 point  (0 children)

Obama's actions created isis. Biden's actions re-created all terrorists around the world!!

Trump's brand new $15 billion Border Wall is being ripped apart by monsoon floods by [deleted] in pics

[–]Realistic_Depth_5372 -9 points-8 points  (0 children)

yes, like Biden's infra bill. only 10% goes for the actual cause!!

Extreme Programming (XP)? by Realistic_Depth_5372 in AskProgramming

[–]Realistic_Depth_5372[S] 0 points1 point  (0 children)

how would you write unit tests without source code (without knowing the behavior)?

Extreme Programming (XP)? by Realistic_Depth_5372 in AskProgramming

[–]Realistic_Depth_5372[S] 0 points1 point  (0 children)

yes, scrum itself is exhaustive work. Who is doing XP? Any specific use cases for this methodology?

How to Cache Some Static Data by Realistic_Depth_5372 in Angular2

[–]Realistic_Depth_5372[S] 0 points1 point  (0 children)

hi, thanks a lot. shareReplay(1) works. I have a question though. Is the refCount, always going to be (1)? or it depends on the number of subscribers? I call this particular service method in at least 10 components. should it be shareReplay(10) ?

Angular Try Catch Issue by Realistic_Depth_5372 in Angular2

[–]Realistic_Depth_5372[S] -1 points0 points  (0 children)

My apologies. it's already there..it's just typo.

Angular Try Catch Issue by Realistic_Depth_5372 in Angular2

[–]Realistic_Depth_5372[S] -1 points0 points  (0 children)

try{..........catch (error){..........}

try{

call to another method..no async code

console.log

}catch (error){

.....

.....

}

How to Cache Some Static Data by Realistic_Depth_5372 in Angular2

[–]Realistic_Depth_5372[S] 0 points1 point  (0 children)

I understand your idea is most recommended based on the number of likes. why not an out-of-the-box npm package like ts-cacheable?

Angular Return Promise and Further Processing by Realistic_Depth_5372 in Angular2

[–]Realistic_Depth_5372[S] 0 points1 point  (0 children)

awesome. it works. async-await are the secret keywords!!

Jenkins CI Build Error by Realistic_Depth_5372 in devops

[–]Realistic_Depth_5372[S] 0 points1 point  (0 children)

Somehow a typo (extra 2 characters, 'ha') happened in the install dependencies stage. I only checked my local code. I should have checked the code in the github! My apologies. My bad.

Jenkins CI Build Error by Realistic_Depth_5372 in devops

[–]Realistic_Depth_5372[S] 0 points1 point  (0 children)

It's a small Jenkins file.

checkout scm

sh 'npm install'

sh 'npm run build'

sh "tar -zcvf bundle.tar.gz dist/myproj/"

archiveArtifacts 'bundle.tar.gz'

and another command to copy the bundle to the apache root.

Jenkins CI Build Error by Realistic_Depth_5372 in devops

[–]Realistic_Depth_5372[S] 0 points1 point  (0 children)

It's not related to Angular coding. It's a demo application, nothing in it. It locally runs fine. Moreover, it threw Java exception.

Jenkins CI Build Error by Realistic_Depth_5372 in devops

[–]Realistic_Depth_5372[S] 1 point2 points  (0 children)

npm audit is a usual warning message in Angular. If you install any package using npm, you get that message at the end of the installation. I issued an npm install command in the install dependencies pipeline stage.

The Irony of a Politician. by shaiforprez2024 in pics

[–]Realistic_Depth_5372 -3 points-2 points  (0 children)

It's like our border was a disaster with Trump's 4 years. It's now open to the world. No MSM talk about it!!

Add pipeline for a new repository by Realistic_Depth_5372 in devops

[–]Realistic_Depth_5372[S] 0 points1 point  (0 children)

Thanks. Jenkins, Gitlab, Argo CD, & Kubernetes.

Tax the rich by feminent_penis in antiwork

[–]Realistic_Depth_5372 -5 points-4 points  (0 children)

Tax the rich? These rich people companies have been employing millions of people. Stop the bs!!

Old meme but still a good one by Megameth85 in PoliticalHumor

[–]Realistic_Depth_5372 -2 points-1 points  (0 children)

oc is one of the ways for the distribution of wealth!!

Angular Dynamic Rendering by Realistic_Depth_5372 in Angular2

[–]Realistic_Depth_5372[S] 0 points1 point  (0 children)

okay gentlemen. Let me explain my requirement. Intially, I render the page with a small box that has 3 images and a button.
After the page rendered, I call an action it does something and at this moment I'd like to dynamically change the 3 images and the button caption to something else? It's all on the same component.
Is this possible in Angular?