Flexbox changes a container's child elements into inline, flexible elements
Flexbox is a single-direction layout concept -- direction can be either column or row
Flexbox changes a container's child elements into inline, flexible elements
Flexbox is a single-direction layout concept -- direction can be either column or row
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.
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) |
Use a directive to augment a DOM
node:
Do not use a directive:
scope
(use a controller
instead).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 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);
/* 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;
//Single line comments are removed when Sass is compiled to CSS.
/* Multi line comments are preserved. */
/* Variables ============================== */
##Sass Functions Cheat Sheet