For my Angular workshop repository I wanted to clone the final branch without any history to a new repository so that I could try out some different technologies but I didn’t want to polute the workshop repository. Luckily, we can do this using the git clone command. Command Here is the basic command. Replace “Branch Name” with the name of your branch, “Git Repo” with the url to your Git repository, and “Folder Name” to the directory that you want to clone the branch into.
When creating NgRx effects you need to decide which RxJS operators to use. There are a lot of RxJS operators but the ones that we are going to use are: mergeMap, concatMap, exhaustMap, and switchMap. Each of these have recommended use cases in order to avoid race conditions. Operator Explanation Before we look at when to use each of the operators, lets look at what each of the operators does.
If you are using Git as your version control system, you need a .gitignore file to keep all of those user specific files out of Git like the bin/obj directories. You could manually create and configure the .gitignore file but why do it yourself when others have already done it for you. A quick search and you will run across the gitignore repo where you could download a premade file but what about if you had a tool to do this for you?
With the release of .NET Core 2.1 the .NET Core CLI includes a feature called Global Tools that provides a simple way to create and share cross-platform console tools. When you install a global tool, the CLI will download a special NuGet package that contains a console application and make your console tool available as a new command from the command line. Note: You will need to download .NET Core 2.
Downloading and extracting a zip file using Node seemed like a pretty easy task but alas it took some time to figure out. While researching how to do this, I didn’t find a library that had all of the requirements within it but I did find a few that allowed me to meet the requirements Requirements Download zip file from a url Extract zip file to a directory location Extract a single directory and all of its sub-directories within the zip file Downloading the Zip File Step 1 was to get the zip file downloaded using Node and make sure that I could manually open it.
When I got started as a conference speaker I would see Jeremy Clark recording his talks and I thought I should record my talks too. It would help me improve as a speaker by seeing how I actually was on stage versus how I think I was. As well, it gives attendees the ability to watch a replay of the talk in case they missed something or weren’t able to see it.
Note: This post applies to AngularJS. The 1.x version of Angular. Recently, I upgraded one of my apps to AngularJS 1.6 along with a bunch of other changes and a bunch of my routes broke. Unfortunately, I didn’t catch the routing issue before making a bunch of other changes. The one thing I noticed for all of the broken routes is the urls now had an #! (https://myapp.com/#!/) in them instead of just the # (https://myapp.
After each blog post is published, we need to let people know that a new post is published. We can’t expect people to only find out about the new post through the RSS feed. For this blog, I tweet out that I have a new blog post. However, I don’t want to have remember to send out the tweet because I will forget or get busy with something else. Instead, sending out a tweet should be done for me.
Note: This post applies to Angular. The 2+ version of Angular. Are you trying to run your Angular 2 unit test and the Karma test runner is not finding any tests to execute? This is exactly what happened to me when I tried to run the unit tests that are included as part of the project that the Angular CLI generates. The test runner should have found 3 tests to execute but as your could see above it didn’t find any test to execute.
Note: This post applies to Angular. The 2+ version of Angular. Welcome to the continuing series on Getting Started with Angular 2. In the [previous post], we created our project using the Angular CLI. In this post, we will be adding the Bootstrap library to the project to make it easier to style our application. To make Bootstrap play nice with Angular we are going to use the ng2-bootstrap library which rewrites the Bootstrap components to be powered by Angular instead of JQuery.