Wednesday, April 15, 2015

AngularJS

AngularJS is built around the belief that declarative programming should be used for building user interfaces and connecting software components, while imperative programming is better suited to defining an application's business logic.

Directives 

AngularJS directives are extended HTML attributes with the prefix ng-.

The ng-app directive initializes an AngularJS application.
The ng-init directive initializes application data.
The ng-model directive binds the value of HTML controls (input, select, textarea) to application data.

Data Binding

Data-binding: This is one of the core features in Angular. When the page loads, Angular binds the name of the input box to a variable of the same name in the data model and keeps the two in sync.

The {{ firstName }} expression, in the example above, is an AngularJS data binding expression.
Data binding in AngularJS, synchronizes AngularJS expressions with AngularJS data.
{{ firstName }} is synchronized with ng-model="firstName".

Filters

A filter can be added to an expression with a pipe character (|) and a filter.

Tuesday, April 14, 2015

Javascript

1. where to put the javascript in the HTML, head or body?


A common advise for HTML applications, is to place scripts at the very bottom of the element.

Sunday, April 5, 2015

PhoneGap

http://cleancodedevelopment-qualityseal.blogspot.nl/2012/11/how-to-install-phonegap-for-android.html

Getting Cordova/Phonegap to emulate on Genymotion virtual device
It seems that adb sees genymotion virtual device as a real device and not as an emulated one, try cordova run android instead of cordova emulate android.