Difference between Component & Directive in Angular

Difference between Component & Directive in Angular: Component: Components can be created using @Component annotation. <app-header></app-header>, here app-header is the component. Components helps to split the application into smaller components. Only one component can be used per DOM element. <app-header app-footer></app-header app-footer> can’t do like this and all. Directive: Directive can be created using @Directive annotation. <button highLightMe>I log when […]

452 total views, no views today

» Read more

Difference between Structural and Attribute directives in angular?

What is the difference between Structural and Attribute directives ? Directives are divided into two types namely Structural and Attribute directives. These are the differences: Structural directives: It changes the structure of the DOM. * is prefixed to the structural directives. *ngIf, *ngFor are the examples of structural directives.   Attribute directives: It just changes the appearance of the DOM. […]

454 total views, no views today

» Read more

All about pipe in angular 5 for dummies (custom pipe | pure | impure pipes)

All about pipe in angular 5 for dummies (custom pipe | pure | impure pipes) We can create our custom pipes with the below steps: Create the typescript class with @Pipe decorator 2. Provide the name of the pipe to the @Pipe decorator’s name property. 3. Implement the class with PipeTransform 4. Provide the implementation of the pipe functionality inside […]

265 total views, no views today

» Read more

[Resolved] “org.springframework.web.HttpMediaTypeNotSupportedException” angular 5

Hi All,┬áRecently I came across this “org.springframework.web.HttpMediaTypeNotSupportedException” error while trying to hit my spring boot rest web services application from angular 5.   I am posting my experience because to help someone quickly. I almost cross checked all the places many times, but I could not find the below miss which I found at last and also do remember this […]

288 total views, 1 views today

» Read more

Generate angular + Java code using yeoman & Jhipster

Generate angular + Java code using yeoman & Jhipster Ensure you have installed yeoman (yo when dealing with npm and yarn) and jhipster (generator-jhipster when dealing with npm and yarn). If not installed, have a quick look at,     Step 1: Run yo jhipster     It will ask around 10 to 15 questions, you can provide the sample […]

366 total views, no views today

» Read more

Installing jhipster in windows 10

Installing jhipster in windows 10 Yarn: yarn add global generator-jhipster   Npm: npm install -g generator-jhipster   Verifying the jhipster installations:     Are you facing the issue like below ?   Then try running yarn link generator-jhipster or npm link generator-jhipster and try again.   227 total views, 1 views today

227 total views, 1 views today

» Read more

How to install yeoman in windows 10?

How to install yeoman in windows 10? I am installing yeoman through yarn, so ensure you have yarn first, even if you npm that’s fine and you can install using npm install yo.   Command to install/add yeoman through yarn: yarn add yo [yarn add yeoman is deprecated] Run this command to install it globally across your machine, yarn add […]

241 total views, no views today

» Read more

Core Java Programming Interview Questions

Core Java Programming Interview Questions: All these below are purely java programming interview questions collected from different attendees and different companies. Walk through all the programming questions and try to figure it out before checking the answers below.   Basics:   1.What is the output ? package in.javadomain; class Basics { public static void main(String[] args) { System.out.println(“I am main […]

343 total views, no views today

» Read more

Understanding & Resolving “Too many connections” Exception

Understanding & Resolving “Too many connections” Exception:   Exception: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Data source rejected establishment of connection, message from server: “Too many connections” Issue Fix: Close the open connections properly, because too many open connection error indicates too many connections are opened but not closed. Existing Code which has the issue:   In the below code, finally block still has the […]

282 total views, no views today

» Read more

Java program to check whether the String is Pangram or Not

Java program to check whether the String is Pangram or Not: What is Pangram ? If a given sentence has all the alphabets then it is a valid pangram.   If the below sentence is given as input then it has to return “Pangram” The quick brown fox jumps over the lazy dog   If the below sentence is given […]

442 total views, 1 views today

» Read more
1 2 3 4 65