Difference between angular-route and angular-ui-router ui-router is a 3rd-party module and is very powerful. It supports everything the normal ngRoute can do as well as many extra functions. Here are some common reason ui-router is chosen over ngRoute: ui-router allows for nested views and multiple named views. This is very useful with larger app where … Continue reading Difference between angular-route and angular-ui-router
Why should I use UI-Router in AngularJS? Multiple views: Most applications can be broken up into regions. At a minimum, applications usually have a header, a main content area, and a footer. Commonly, applications may have an additional sidebar on the left or right side of the page as shown below. In most use cases, … Continue reading Why should I use UI-Router in AngularJS
AngularJS service vs factory – with example, Understanding AngularJS Factory and Service. What is an AngularJS service or factory? What is an AngularJS service or factory? Singleton. Yes! That one word is enough to define AngularJS services. The purpose of AngularJS service / factory function is to generate a single object or function that represents the service to … Continue reading Understanding AngularJS Factory and Service
Bower angular ENOGIT git is not installed or not in the PATH when trying to use windows command line. Turns out, you have to select this setting twice and I have missed the second one. Here’s a few screenshots if any help for anyone: The one I have missed: After reinstalling with the above settings, … Continue reading bower angular ENOGIT git is not installed or not in the PATH
How to run Gulp tasks sequentially one after the other? By default, gulp runs tasks simultaneously, unless they have explicit dependencies. This isn’t very useful for tasks like clean, where you don’t want to depend, but you need them to run before everything else. I wrote the run-sequence plugin specifically to fix this issue with … Continue reading How to run Gulp tasks sequentially one after the other?
What is the difference between Bower and npm? Bower vs npm npm is most commonly used for managing Node.js modules, but it works for the front-end too when combined with Browserify and/or $ npm dedupe. Bower is created solely for the front-end and is optimized with that in mind. The biggest difference is that npm does … Continue reading What is the fundamental difference between Bower and npm?
Trying to run “npm start” fails due to some error. npm ERR! Failed at the firstname.lastname@example.org start script In package.json, I changed “@types/selenium-webdriver”: “^2.53.33” to “@types/selenium-webdriver”: “2.53.33” It compiles the TypeScript now. Looks like there was an update published today that broke something. https://www.npmjs.com/package/@types/selenium-webdriver