niharikagurnani.hashnode.devBundling in AngularBundling is the need of the hour as even today bloated web apps are being shipped to the production servers which really slows down the performance of the web apps & overall results in bad user experience. Bundling -> Collection of JS packages & othe...Jul 10, 2024·4 min read
niharikagurnani.hashnode.devDeep Copy vs Shallow copy"Knowingly or unknowingly, since we all know JS in unpredictable, we end up modifying the existing data in JS objects / variables. To prevent this, we must ensure to safely copy the data." By simply using the = (assignment) operator, we end up copyin...May 30, 2024·4 min read
niharikagurnani.hashnode.devUsing Debouncing vs Throttling & implementation in AngularPurpose: To optimize the performance of the web app, How? By limiting the rate of function calls for eg. API calls. For example - search bar -> Input event {value changes - subscribe} Suppose we're entering some letters in the search bar, there we se...Feb 5, 2024·4 min read
niharikagurnani.hashnode.devModule Routing Strategies in AngularOpen on Github: https://github.com/niharika293/angular-module-strategies Loading of a module can be achieved in 3 ways - Eagerly Loading {Default}: This will load all the modules all at once, even before our app starts. -> For small apps, it's a v...Sep 9, 2023·5 min read
niharikagurnani.hashnode.devRoute Guards in AngularGuards are nothing but some code/logic executed before the route is even loaded or when the user tries to exit from the route. They're generally known as routing guards. Open on Github - https://github.com/niharika293/Angular-rout-guard-poc Objective...Sep 4, 2023·5 min read