Text
@team4talent
http://www.team4talent.be
5+ Year web development
Team4Talent
.Net Consultant
Microsoft Certified Solutions Developer
@jorisbrauns
http://blog.jorisbrauns.be
6+ Year web development
Team4Talent
.Net Consultant
Competence Manager
@sommertim
http://blog.timsommer.be
Introduction
Angular
#T4TRocks
Where Whatever stands for
"whatever works for you"
Igor Minar
http://www.cheatography.com/proloser/cheat-sheets/angularjs/
Core
Display
Event
//css classes
.ng-valid {}
.ng-invalid {}
.ng-pristine {}
.ng-dirty {}
.ng-touched {}
.ng-untouched {}Note that 'novalidate' is used to disable browser's native form validation.
ngModel.NgModelController
$error
$pending
$untouched
$touched
$pristine
$dirty
$valid
$invalid
Get ready to feel lost
A Directive is a marker on a HTML tag that tells Angular to run or reference some Javascript code
//As an attribute:
<span my-directive></span>
//As a class:
<span class="my-directive: expression;"></span>
//As an element:
<my-directive></my-directive>
//As a comment:
<!-- directive: my-directive expression -->
'A' - <span ng-shizzle></span>
'E' - <ng-shizzle></ng-shizzle>
'C' - <span class="ng-shizzle"></span>
'M' - <!-- directive: ng-shizzle -->Note: You can specify multiple
restrict: 'EA'^ -- Look for the controller on parent elements, not just on the local scope
? -- Don't raise an error if the controller isn't found@ -- Used to pass a string value into the directive
= -- Used to create a two-way binding to an object that is passed into the directive
& -- Allows an external function to be passed into the directive and invokedInclusion of a document or part of a document into another document by reference
describe('PhoneCat controllers', function() {
describe('PhoneListCtrl', function(){
var scope, ctrl;
beforeEach(module('phonecatApp'));
beforeEach(inject(function($controller) {
scope = {};
ctrl = $controller('PhoneListCtrl', {$scope:scope});
}));
it('should create "phones" model with 3 phones', function() {
expect(scope.phones.length).toBe(3);
});
it('should set the default value of orderProp model', function() {
expect(scope.orderProp).toBe('age');
});
});
});https://angularjs.org
https://builtwith.angularjs.org
http://www.youtube.com/user/angularjs
http://andyshora.com/promises-angularjs-explained-as-cartoon.html
Introduction
Angular
@jorisbrauns https://www.linkedin.com/in/brauns http://blog.jorisbrauns.be
@sommertim https://www.linkedin.com/in/timsommer http://blog.timsommer.be
https://github.com/timsommer/CvoAntwerpenZuidAngularDemo
https://slides.com/jorisbrauns/angularjs