Add external HTML pages inside components

We may need to insert static or dynamic HTML pages / fragments coming from outside our website. With this little trick we can make a “get” call for the HTML we need to show it in a <div> container. The fragment must not have unexpected HTML (such as style or […]

Read More…

Java generic types

Generic Types

Let’s talk about the Java generic types. Most of the time, we add generics to make lists type-safe.We have pre-java 5 lists without generics that can get all known object’s types and when you get an object out of it we don’t know its type. When we use generics we […]

Read More…

Tips: rest API POST content types

If we need to POST an object with validated field, we can send it from our FE (Angular, React, etc…) application with 2 main content types: JSON or “form encoded”.Pay attenction to not use the @RequestBody annotation if you want to send those datas in the second one type.The application […]

Read More…

Footer on bottom for short contents

css Footer on bottom for short contents

In this article we will discover the rules for the Perfect Footer, that can adapt for all eventualities, a css trick for all. When you have a short content (that not fill the viewport) it stay at bottom of the page, leaving space between it and short content. When you […]

Read More…

Angular Translate

Angular translate module

Dynamic labels can be generated, translated with the user’s language and/or language administration. All starts with the import of translation modules: Then generate our json with the translations of the labels: In our module we will add imports and a function to load an external file. In a component we […]

Read More…