angular js calling services twice - Angular JS
Hey everyone, I had a few of my AngularJS services being called twice. The issue turned out to be that I’d added a controller to both my route and my view: Removing…
Read postLet's take a look at what I've broken today
Page 3 of 6
Hey everyone, I had a few of my AngularJS services being called twice. The issue turned out to be that I’d added a controller to both my route and my view: Removing…
Read postHey everyone, Just getting back into angularjs and I came across the following error: Unknown provider: $routeProvider It turns out I that while I had included the…
Read postHey everyone, A team member found an interesting bug today that caused chrome to go non-responsive. The cause was simply dragging a file from the file explorer onto a…
Read postHey everyone, Just a quick post on how to force a page refresh with JavaScript (no jQuery required): Note that the reload function accepts a boolean parameter that…
Read postHey everyone, Just a quick post on how to detect a file’s size with jQuery. I’m currently using a version of this for basic client side validation: Here’s the link to…
Read postHey everyone, Coming from Rails I’d grown quite fond of flash messages. Unfortunately there isn’t a built in way of doing this in MVC4. Luckily, there’s a five minute…
Read postHey everyone, I ran into a bit of an issue today with my stylesheet conflicting with Bootstrap. After a bit of tinkering I realised that all I really needed from…
Read postHey everyone, Just a quick post on something useful I came across today. In JavaScript you can access the stack trace via console using the following command (ctrl +…
Read postHey everyone, Ran into a bit of an issue today where a url was being shortened in Chrome’s console. It turns out that there’s a quick command you can use to copy the…
Read postHey everyone, Just another small directive. This one adds a random class from the provided array to the element. Check out this fiddle to see the demo:…
Read post