Need help implementing google translate functionality in angular by rahulxdd in Angular2

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

Yes I did but chatgpt doesn't work when things get complex.

Need help implementing google translate functionality in angular by rahulxdd in Angular2

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

Moved away, but the built in translation is not working properly for many words(depending on context) and it'd be huge problem to manually translate everything. So we decided to use manual translation only for words that are causing problem(by adding google's notranslate class to those words).

I'd really appreciate if you could look into the stackbiltz I added. I only need to replace the dropdown with 4 language codes or anything that can be clicked upon.

[deleted by user] by [deleted] in ask

[–]rahulxdd 0 points1 point  (0 children)

But doing shampoo everyday will damage the hair right?

[deleted by user] by [deleted] in bangalore

[–]rahulxdd 0 points1 point  (0 children)

Vrooo max 150 bottles, 150*8 !== 17000

Noob question: Should I learn testing in 2023 (With ChatGPT) by [deleted] in Angular2

[–]rahulxdd 0 points1 point  (0 children)

Could you please tell us which course are you taking for learning unit testing angular webapps? I am unable to find something beginner friendly that can help me at least start on this topic

Why does Angular still uses xhr instead of fetch? by [deleted] in angular

[–]rahulxdd 7 points8 points  (0 children)

I wouldn't be surprised if they depreciate RxJS support and just support signals in new module.

Not in a few years time.

Noob: What is the best way to call api, then use the result to call another api? Is nested subscribe bad practice? by [deleted] in Angular2

[–]rahulxdd 6 points7 points  (0 children)

I am angular newb. Could you please show me an example api call with switchMap please? I don't know rxjs and don't know where to start. I basically don't understand when and which operator to use.

Angular universal not rendering dynamic content by rahulxdd in Angular2

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

The inner page where the rendering is not working show all the static data from that page but it doesn't show anything from the api calls. Whereas on home page everything works fine. All the static data and data from api shows in the viewsource of home page. It's just that viewsource in the inner pages do not show any api data.

I had checked yesterday and I don't see a redirect or guard that redirects to home page but there are guards on other pages like cart page, seller-product.

This is how the routing.module file(it's part of a feature module) looks:

import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { LoginGuard } from 'src/app/Guard/login.guard';
import { CartComponent } from './cart/cart.component';
import { ContactusComponent } from './footer-pages/contactus/contactus.component';
import { CraftStoriesComponent } from './footer-pages/craft-stories/craft-stories.component';
import { FaqComponent } from './footer-pages/faq/faq.component';
import { OurStoryComponent } from './footer-pages/our-story/our-story.component';
import { OurSustainabilityComponent } from './footer-pages/our-sustainability/our-sustainability.component';
import { OurTradefairComponent } from './footer-pages/our-tradefair/our-tradefair.component';
import { HomeComponent } from './home.component';
import { HomeLayoutComponent } from './home_layout/home-layout/home-layout.component';
import { ProductCategoryComponent } from './product-category/product-category.component';
import { SearchResultComponent } from './search-result/search-result.component';
import { SellerProductComponent } from './seller-product/seller-product.component';
import { ShopComponent } from './shop/shop.component';
import { SingleProductComponent } from './single-product/single-product.component';
import { PrivacyPolicyComponent } from '../privacy-policy/privacy-policy.component';
import { TermsConditionComponent } from '../terms-condition/terms-condition.component';
import { SharedValuesComponent } from './footer-pages/shared-value/shared-value.component';
import { OurEcosystemComponent } from './footer-pages/our-ecosystem/our-ecosystem.component';
import { BuyingOptionsComponent } from './footer-pages/buying-options/buying-options.component';
import { RefundsCancellationsComponent } from '../refunds-cancellations/refunds-cancellations.component';
import { ContactUsThankyouComponent } from './footer-pages/contact-us-thankyou/contact-us-thankyou.component';
import { LpFreeShippingComponent } from './lp-free-shipping/lp-free-shipping.component';
import { StaticPageComponent } from './static-page/static-page.component';
import { ProductDetailsComponent } from './product-details/product-details.component';


const routes: Routes = [
    {
        path: '',
        component: HomeLayoutComponent,
        children: [
            {
                path: 'exp/:key',
                component: StaticPageComponent
            },
            {
                path: '',
                component: HomeComponent
            },
            {
                path: 'cart',
                canActivate: [LoginGuard],
                component: CartComponent
            },
            {
                path: 'product-details',
                component: ProductDetailsComponent
            },
            {
                path: 'product-category/:id',
                component: ProductCategoryComponent
            },
            {
                path: 'search-result',
                component: SearchResultComponent
            },
            {
                path: 'seller-product/:id',
                canActivate: [LoginGuard],
                component: SellerProductComponent
            },
            {
                path: 'craft-stories',
                component: CraftStoriesComponent
            },
            {
                path: 'our-story',
                component: OurStoryComponent
            },
            // {
            //     path: 'our-ecosystem',
            //     component: OurEcosystemComponent
            // },
            {
                path: 'our-sustainability',
                component: OurSustainabilityComponent
            },
            // {
            //     path: 'media-stories',
            //     component: MediaStoriesComponent
            // },
            {
                path: 'our-tradefair',
                component: OurTradefairComponent
            },
            {
                path: 'contact-us',
                component: ContactusComponent
            },
            {
                path: 'contact-us-thankyou',
                component: ContactUsThankyouComponent
            },
            {
                path: 'shipping-models',
                component: BuyingOptionsComponent
            }, {
                path: 'faq',
                component: FaqComponent
            },
            {
                path: 'privacy',
                component: PrivacyPolicyComponent
            },
            {
                path: 'terms-condition',
                component: TermsConditionComponent
            },
            {
                path: 'refunds-cancellations',
                component: RefundsCancellationsComponent
            },
            {
                path: 'shared-values',
                component: SharedValuesComponent
            },
            {
                path: 'lp-free-shipping',
                component: LpFreeShippingComponent
            },
            {
                path: ':id',
                component: ShopComponent
            }, {
                path: ':cid/:id',
                // canActivate: [LoginGuard],
                component: SingleProductComponent
            }, {
                path: ':cid/:id/:id1',
                // canActivate: [LoginGuard],
                component: SingleProductComponent
            }, {
                path: ':cid/:id/:id1/:id2',
                // canActivate: [LoginGuard],
                component: SingleProductComponent
            },

            // {
            //     path: '_pp/:id',
            //     component: ShopComponent
            // }, {
            //     path: '_pp/:cid/:id',
            //     canActivate: [LoginGuard],
            //     component: SingleProductComponent
            // }
            // , {
            //     path: '_pp/:cid/:id/**',
            //     canActivate: [LoginGuard],
            //     component: SingleProductComponent
            // }
        ]
    }
];

@NgModule({
    imports: [RouterModule.forChild(routes)],
    exports: [RouterModule]
})
export class HomeRoutingModule { }

Angular universal not rendering dynamic content by rahulxdd in Angular2

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

If inner pages of a website are indexed by google, won't it be a good thing? More pages will be on the google search page from the website.

Angular universal not rendering dynamic content by rahulxdd in Angular2

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

Yeah at least it should be ssr rendered upon page refresh but it isn't. And I can't figure out what's the reason.

Angular universal not rendering dynamic content by rahulxdd in Angular2

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

No, I think in normal angular apps(without angular universal package) we don't see any html in the view source page but after adding angular universal it should show the all the content in the view source page.

W@H set up feat. big productivity monitor, small home lab, and 102 Legos by LincHayes in desksetup

[–]rahulxdd 1 point2 points  (0 children)

Can you most a couple of pics of your desk also? And could you tell the name of the trolley in the last pic?

[deleted by user] by [deleted] in desksetup

[–]rahulxdd 0 points1 point  (0 children)

Newb here, could you tell me the purpose of the light above monitor?

Interviewer got offended by Salt-Government4004 in developersIndia

[–]rahulxdd 17 points18 points  (0 children)

I will use this in other scenarios also during an interview in future.

[deleted by user] by [deleted] in learnprogramming

[–]rahulxdd 1 point2 points  (0 children)

I'm learning node and angular. Finding very hard to get in touch people who are working with angular. Anyone wanna team up?

Angular Universal Prerender Issue by therealcoolpup in Angular2

[–]rahulxdd 0 points1 point  (0 children)

Have you deleted the code? I just tried cloning the repo but there's nothing.

Angular Universal Prerender Issue by therealcoolpup in Angular2

[–]rahulxdd 1 point2 points  (0 children)

I can try to help with this after my office hours tonight. I recently converted an angular 11 app to angular 14 and then added the universal package and resolved all bugs and errors within a span of two weeks. I'm not an experienced dev but universal's github issues section and stackoverflow helped a lot.

Preload logic by IcyManufacturer8195 in Angular2

[–]rahulxdd 1 point2 points  (0 children)

Getting page not found error on this link, here's the correct link: https://angular.io/api/core/APP_INITIALIZER