Every web developer at some point faces a CORS problem while developing a website. CORS is described in MDN documentation as:

“Cross-Origin Resource Sharing (CORS) is an HTTP-header based mechanism that allows a server to indicate any other origins (domain, scheme, or port) than its own from which a browser should permit loading of resources. CORS also relies on a mechanism by which browsers make a “preflight” request to the server hosting the cross-origin resource, in order to check that the server will permit the actual request. …

this cover image

Today world is capture by JavaScript and JavaScript is easy to learn but hard to master. With this master journey we will cover some best use case of “this” in JavaScript.

In JavaScript this is the function invocation context.

Pexel image

Let's learn the most used data structure as in very simple language, graph is most useful and most used data structure in computer science when in come to modelling real life.

Cascading Style Sheet aka stylesheet, CSS is most used stylesheet which front-end developer love the just, but when it handover to backend developer they find it most notorious thing in whole world. 😂

As we know front-end development is changing day by day, and every day is a learning a new thing and today's world everyone is busy and fast. As a developer we always have a dependency to some other person which make development halt at some point. Which everyone faces a problem while in development.

CSS saves a lot of work. It can control the layout of multiple web pages all at once but, CSS is a more dangerous style sheet language which seems to easy sometime but sometime become very difficult to maintain style sheet.

Today’s world web is full of competition, make your website no. 1 by these rules.

So, let discuss SEO, to which most develop don't care you while developing a website this is because they don’t know the power of SEO and how much awareness it will spread in the real world about your website.

What Wikipedia is saying about SEO -

Search engine optimization (SEO) is the process of improving the quality and quantity of website traffic to a website or a web page from search engines.[1] SEO targets unpaid traffic (known as “natural” or “organic” results) rather than direct…

Angular CLI

Angular is a powerful framework to build great project, when we say a name angular first comes in mind is Google, but angular is also have a powerful thing called Angular command-line interface (CLI), which name developer work easier and faster to build Angular applications.

Hope you like part 1 angular APIs, but you get excite to know more APIs which we will explore in this article.

If you didn’t check Part 1, here you go https://ankitsrivastavablog.medium.com/i-am-sure-no-one-told-you-these-angular-debug-tips-part-1-be29daa124f7


The ng.getDirectives() function returns an array of Angular directives that are applied to an element in the DOM.

Using this, we can not only determine what directives are being applied to the element, but we can also access a specific directive instance


Here is a screenshot showing the result of the getDirectives() function.

I like debugging, even more when I open any application my browser debugging dev tool is also remain opened, and I am sure everyone and other is done to debug an application.

This is first part of articles to know more check Angular debug Part II.

Unfortunately, Angular is lacking with it application debug thing, so this article is aimed to provide you with the knowledge to become Angular debugging master ?🐱‍👤

“ Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition…

Ankit Srivastava

Read code • Learn Code • Write code • Relax • Write code, www.linkedin.com/in/ankit1srivastava

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store