I had an issue recently with a pretty standard form in Angular 2. The form had some required fields, one of which was a drop down / select field that wouldn’t populate with options until the user had made some selections earlier in the form. The submit button for the form was disabled until all required fields were filled in.
The issue arose when the client started testing the form in their environment. Despite completely filling out the form, the submit button would stay disabled. Obviously something was wrong.
Continue reading “Dynamically Populating Drop Downs in Different Browsers”
Recently, a client reached out to me that their video streaming wouldn’t allow for seeking (fast-forward & rewind). Not knowing a lot about streaming, I did some google searching and found out that if the API is not setup to support seeking, then it will not work.
I found a great starting point for this:
Continue reading “Streaming Video Content to a Browser using Web API”
I was in requirements gathering meetings all day, so this evening I was doing some “actual work” when a I received an email congratulating me on my Microsoft certification. Being that I haven’t taken an exam in a few months I was a little perplexed. Not that I mind getting more certifications but I generally like to actually know about it beforehand.
Continue reading “New MS Certification Paths”
Recently I had built an Angular JS application that would prompt the user for some information in a popup whenever they tried to navigate to a specific route, before that route’s page actually shows to the user. If the user provided some invalid data or they cancelled/closed the popup I needed the app to either a) take the user back to the route they were on or b) redirect to the home page of the app if they weren’t coming from a route within the app.
Continue reading “Angular JS Routing Interception and Redirection Failure”
Figuring this out took me longer than I expected it would. Attachments are not included as a column in a SharePoint list, but are saved in a folder that is named after the id of the item you attached the file to.
Continue reading “Adding Attachments to a List Item in Sharepoint”
The idea is that you pass the class/function/attribute through a function and the result becomes the class/function/attribute.
As an example, if you make a @final decorator and have the code…
Continue reading “Decorators in TypeScript”
Until recently, the front-end testing I’d done had not directly tested any Angular services. In almost every case, the $http calls in the services were just returning data from an API back to a controller. However, on a recent project I had a scenario where the data from the API had to have some filtering and permission logic applied before passing on the data. This was a case where unit testing the service made sense.
As it turns out, testing a service is very similar to testing a controller in terms of setting up the test, injecting dependencies, and making assertions. The only real difference is the need to mock the $http call in the service. To do this the angular-mocks library provides the $httpBackend tool. Let’s walk through an example of testing a service.
Continue reading “Testing Angular Services”