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 […]
Author: aldomatic
To better understand what we are going to solve in this post take a look at what Pathmodify does. gulpfile.js var paths = { node_modules: ‘/path/to/node/modules/node_modules/’, ng_services: ‘/path/to/angular/services/ng_services/’, }; gulp.task(‘browserify’, function() { return browserify(‘app.js’, {}) .plugin(pathmodify, {mods: [ pathmodify.mod.dir(‘node_modules’, paths.node_modules), pathmodify.mod.dir(‘ng_services’, paths.ng_services) ]}) .bundle() .pipe(stream(‘bundle.js’)) Getting up and moving increases blood flow to the sex […]
$http POST preflight error with CORS
Preflighted error while using the $http.post() method. The $http service uses the browsers XMLHttpRequest object. Angular defaults the $http.post method to use content type of ‘application/json‘. The medicine has some timing when it must be consumed in the form of 100mg which has been readily made available in the drugstores or also on the get cialis overnight […]