Check String Empty or Not in Python
If you need to check if a String is empty or not in Python then you have the following options.Using len() function to check if String is emptyYou can check length of String in Python using len()...
View ArticlePython String isdigit() Method
The isdigit() method in Python String class is used to check if all the characters in the string are digits or not.isdigit() method returns true if all characters in the string are digits and there is...
View ArticlePython String isnumeric() Method
The isnumeric() method in Python String class is used to check if all the characters in the string are numeric characters or not.isnumeric() method returns true if all characters in the string are...
View ArticleHow to Add Bootstrap to Angular Application
In this article we’ll see how to add Bootstrap to your Angular application so that you can style your templates. Bootstrap is one of the most popular HTML and CSS framework for building responsive UI...
View ArticleCreating New Component in Angular
Components are the building block of any Angular application. A well designed UI should break its rendering into different components where each component renders the particular portion of the UI. That...
View ArticleSpring MVC Form Validation Example
In this post we’ll see a Spring MVC form validation example using Bean Validation API.Technologies usedFollowing is the list of tools used for the Spring MVC form example with bean validation.Spring...
View ArticleHow to Inject Prototype Scoped Bean into a Singleton Bean in Spring
In this post we'll see different ways of injecting prototype scoped bean into singleton scoped bean in Spring so that new instance of prototype scoped bean is created every time.Problem with injecting...
View ArticleAngular Example to Render Multiple Rows
In this Angular example we’ll see how to render multiple rows. So there will be a UI for entering data and a submit button. After entering data when user clicks submit button the entered data is...
View ArticleAngular @Input and @Output Example
In the post Angular Example to Render Multiple Rows we saw an example demonstrating the use of @Input decorator in Angular and property binding. In this post we’ll see an example showing the use of...
View ArticleTernary Operator in Java With Examples
Java includes a conditional operator known as ternary operator (?:), which can be thought of as a shorthand for an if-else statement. This operator is known as the ternary operator because it uses...
View ArticleAngular @Component Decorator
Decorators or annotations are used to provide metadata about the entity where these decorators are added. Angular @Component decorator provides metadata about the class and tells Angular that the...
View ArticleAngular ngIf Directive With Examples
Angular provides some of the built-in directives to perform the most common tasks in web application development. Angular ngIf directive is used to conditionally include or remove an element in the...
View ArticleAngular ngSwitch Directive With Examples
In the post Angular ngIf Directive With Examples we saw how to use ngIf directive but you may have a scenario where you need to render different elements based on different conditions. In such scenario...
View ArticleAngular ngFor Directive With Examples
Angular ngFor directive is the looping directive in Angular that iterates over each item in the collection and renders the element (or section of elements) for each item. Here is an example where ngFor...
View Article@Resource Annotation in Spring Autowiring
Apart from supporting JSR-330 annotations like @Inject and @Named for autowiring, Spring also supports injection using the JSR-250 @Resource annotation on fields or bean property setter methods.Spring...
View ArticleSpring Java Configuration Example Using @Configuration
In this post we'll see Spring Java based configuration example using @Configuration annotation. For creating project structure Maven is used.Refer Creating a Maven project in Eclipse to know more about...
View ArticleAngular ngStyle Directive With Examples
Using Angular ngStyle directive you can set the CSS properties for the containing HTML element. Style properties are specified as colon-separated key-value pairs.The key is a style name, with an...
View ArticleAngular ngClass Directive With Examples
Using Angular ngClass directive you can dynamically add or remove CSS classes for a DOM element.With ngClass the CSS classes can be provided in one of the following ways-string- The CSS classes listed...
View ArticleSpring NamedParameterJdbcTemplate Insert, Update And Delete Example
In the post Spring JdbcTemplate Insert, Update And Delete Example we have already seen how JdbcTemplate can be used in Spring framework for data access. If you have noticed the examples there, indexed...
View ArticleSpring NamedParameterJdbcTemplate Select Query Example
In the post Spring NamedParameterJdbcTemplate Insert, Update And Delete Example I have already discussed how NamedParameterJdbcTemplate can be used for inserting and updating data in the DB. In this...
View Article