AngularJS Cheat Sheet

Create vs. Get AngularJS application The module dependency array tells AngularJS to create an app, otherwise to load it: Create myApp var app = angular.module(‚myApp‘, []); Get myApp var app = angular.module(‚myApp‘); Binding @ Text binding, expressions are supported using {{ }} = Two-way binding & Method binding < One-way binding (usually for components) ?…

JavaScript Module Pattern or Just Private Variables

JavaScript is a wonderful language to get thinks fundamentally wrong from the start. As so where are many patters around to help us to avoid some of these challenges ;-). The module pattern is one of the mostly known and used. It helps us to create private variables or better to avoid side effects in…