Categories
javascript nodejs

Create a private NPM package in Github Packages

We will be deploying a private npm package to Github packages. This is like the public npm registry, but in our case it will be hosted on Github and be private. Lets get started Create a new repository in Github and make it private. We will then clone it down to our local machine. Mine […]

Categories
gruntjs javascript nodejs

Recent deployment issue with Sailsjs and no assets being loaded. 

If you find it that when you deploy your sails app and no assets are being loaded. It’s because grunt is not being run when running sails lift. Here is what I found was causing the problem.  Sails looks for this file .sailsrc when you run the app, it will override settings. In this case […]

Categories
angularjs javascript

Access and Update Model Outside Angular

In a recent project I had a form within an Iframe that needed to talk to the parent frame via postMessage. The parent frame was an angular application and I had to show and hide some content. I was able to access the scope outside angular and update via the angular.element() method (This is using […]