AngularJS, formerly Angular 1.X and now sometimes referred to as ng1, is a full fledged language to itself. This repository contains a simple AngularJS application starter template showcasing components as the main building block (not controllers). It uses lite-server to serve the site (which is just a thin layer for browsersync). Launchable in vscode, which makes it quick to get up.
Some of this code is personal preference, but a lot comes from best practices I've learned either by reading or the school of hard knocks. Separation of Concerns is a huge principle and pattern for me. Globals are the devil. Reusable and supportable code are a priority, not just functional.
I've tried to put documentation in the comments of this code on why I've done certain things. I would encourage anybody else contributing to do the same.
- angular components
- ui-router
- multi-view components
- one way data binding
- Angular Spinners
- Bootcards
- (optional) Install Visual Studio Code. It has multi-platform support, is a great general editor, and the task system plus plugins support sets it above and beyond just a code editting tool.
- Install Node.JS via nvm (or nvm-windows)
- NPM should be installed with your Nodejs and is a very useful package manager
- open a command prompt to this directory
- npm install
- npm run start
- (optional) If using vscode, you can just simply "launch" after you run npm install
At the end of the day, components should be used for everything. Controllers can be optional. I tend to add a controller to my component "just in case" but that's personal preference.