A quick reference guide on how to setup.
import ReactiveFormsModule
import { ReactiveFormsModule } from '@angular/forms';
@NgModule ({
##Sass Functions Cheat Sheet
//Single line comments are removed when Sass is compiled to CSS.
/* Multi line comments are preserved. */
/* Variables ============================== */
/* RGBA Color Specification */
background-color: rgba(255, 255, 255, 0.3); color: rgba(255, 255, 255, 0.3);
/* Box Shadow Attributes // (Inset or No, Horiz. (px), Vert. (px), Blur Radius, Spread, Shadow Color) */
/* Box Shadow - Standard */ box-shadow: 0px 0px 5px 1px #444;
Use service for any Class that is to be mapped into the dependency injector.
Do not use a service for a method (use a Class instead).
Services are implemented as a Class and should be PascalCase. Angular will instantiate once only and inject the same instance in all cases. The dependency is therefore camelCase since it is an instance and should not be new'd. For example:
angular.module(...).service('myService', MyService);
Use a controller to augment shared scope.
value that HTML partials may bind to.behaviour that HTML partials may invoke.Do not use a controller:
route instead).service instead).service).Use a directive to augment a DOM node:
Do not use a directive:
scope (use a controller instead).| Operation | Code |
|---|---|
New List |
List<Integer> x = new ArrayList<Integer>(); |
Copy List |
List<Integer> x = new ArrayList<Integer>(y); |
Add an element to the List |
x.add(element) |
Get an elemenet from the List |
x.get(index) |
| Clear the list | x.clear() |
New HashMap |
HashMap<Integer, String> x = new HashMap<Integer, String>(); |
| Add element to the map | x.put(key, value) |
| Get an element from the map | x.get(key) |
This file will cover important coding practices that are important to stress when coding this program. Listed below are some of the more important details that should be stressed. Each programmer has his/her own way to deliver code. The importance of having similar coding conventions throughout this program are listed below.