Fix in IE – Angular 1.6.1 Disabling automatic bootstrap. <script> protocol indicates an extension, document.location.href does not match.

When using angular 1.6.1 in IE9, IE10, IE11, I was getting the error: Disabling automatic bootstrap. <script> protocol indicates an extension, document.location.href does not match. This seemed to be an 1.5.x issue, that was fixed in 1.5.11, but I was getting the error in 1.6.1. To fix the error I …

How to fix: ENOENT: no such file or directory, rename … \abbrev (angular cli)

When I was running “npm install -g angular-cli”, I was getting the following error: npm ERR! npm  v3.10.3                                                  npm ERR! path C:\Users\Roel\AppData\Roaming\npm\node_modules\.staging\a bbrev-69492d5e                                                         npm ERR! code ENOENT                                                   npm ERR! errno -4058                                                   npm ERR! syscall rename                                                npm ERR! enoent ENOENT: no such file or directory, rename ‘C:\Users\Roe l\AppData\Roaming\npm\node_modules\.staging\abbrev-69492d5e’ -> ‘C:\Use rs\Roel\AppData\Roaming\npm\node_modules\angular-cli\node_modules\ember …

How to manually get Angular services in TypeScript

If you manually want to get / use Angular services in TypeScript you can use the following code:   /// <reference path="../libraries/angular/angular.d.ts" /> module app { "use strict"; var appModule = angular.module("app", []); var injector: angular.auto.IInjectorService = angular.injector(["ng"]); var httpService: angular.IHttpService = injector.get("$http"); var qService: angular.IQService = injector.get("$q"); }