Functionality in Angular

Now that we understand the main components of Angular, lets talk functionality. We will be creating a new component, this one will be for having the date and time appear on a page. Create a new component called date-time (ng generate date-time). Once thats created, go into the date-time.component.ts file and add the following code.Continue reading “Functionality in Angular”

Breaking Down Angular components

So how does Angular work? Whats the structure of Angular? To better show this, lets create a new folder. On the command line (make sure youre in the project directory) type ng generate hello-world. This command will generate a new component for us. Angular automatically creates this folder with these files included once we runContinue reading “Breaking Down Angular components”

Welcome to Angular!

This topic will act as an introduction to Angular (as Im still currently learning how it works). But to simplify it, Angular is Javascript front-end framework for web development. Its maintained by none other than Google, and its one of the most popular Java frameworks to come out. The official site has tons of documentationContinue reading “Welcome to Angular!”

Strategy Design Pattern

Strategy is great for run time polymorphism, because thats essentially what it is! We are taking a group of algorithms and changing their behavior when they are called. This gives the user plenty of options on whether or not a class will behave a certain way. This UML (taken from Derrick Bansas’s video: ( https://www.youtube.com/watch?v=-NCgRD9-C6o&list=PLF206E906175C7E07&index=3Continue reading “Strategy Design Pattern”

More Java interview questions

Its that time again, where we go over some more java interview questions! Same as before, questions and answers will be posted here. How would you mark an entity package private in Java? By default, package private is the modifier. There is no explicit modifier for package private. If a class has no modifier (theContinue reading “More Java interview questions”

Abstract vs. Interface

When talking about Abstract classes VS. Interface classes, things can admittedly become confusing. On the surface level, it seems as if they both do exactly the same thing without any differences. However, there are plenty of key differences between the two. One of the key differences between Abstract & Interface classes is how they areContinue reading “Abstract vs. Interface”

Design a site like this with WordPress.com
Get started