AngularJS

From Wiki2
Revision as of 09:00, 26 May 2015 by Tim (talk | contribs) (→‎2.0)

debug

http://24days.in/umbraco/2014/debugging-angularjs/

// Access whole scope
angular.element(myDomElement).scope();

// Access and change variable in scope
angular.element(myDomElement).scope().myVar = 5;
angular.element(myDomElement).scope().myArray.push(newItem);

// Update page to reflect changed variables
angular.element(myDomElement).scope().$apply();
Or if you're using jQuery, this does the same thing...

$('#elementId').scope();
$('#elementId').scope().$apply();
Another easy way to access a DOM element from the console (as jm mentioned) is to click on it in the 'elements' tab, and it automatically gets stored as $0.

angular.element($0).scope();

ng-conf 2015

bennchpress https://github.com/angular/angular/tree/master/modules/benchpress

http://victorsavkin.com/post/110170125256/change-detection-in-angular-2

http://victorsavkin.com/post/108837493941/better-support-for-functional-programming-in

http://mrale.ph/blog/2015/01/11/whats-up-with-monomorphism.html

https://www.youtube.com/watch?v=XRYN2xt11Ek


markdown

https://github.com/btford/angular-markdown-directive

angular-css

https://github.com/door3/angular-css

2.0

rethinking controllers


https://www.youtube.com/watch?v=uD6Okha_Yj0

Victor Savkins blog post on digest

http://blog.thoughtram.io/angular/2015/03/27/building-a-zippy-component-in-angular-2.html

singleton or DI

ui-router

http://scotch.io/tutorials/javascript/3-simple-tips-for-using-ui-router

directives

component based directives

http://www.yearofmoo.com/ @yearofmoo

slides code

http://stackoverflow.com/questions/14050195/what-is-the-difference-between-and-in-directive-scope

http://onehungrymind.com/angularjs-sticky-notes-pt-2-isolated-scope/

http://stackoverflow.com/questions/13032621/need-some-examples-of-binding-attributes-in-custom-angularjs-tags/13033249#13033249

http://stackoverflow.com/questions/14049480/what-are-the-nuances-of-scope-prototypal-prototypical-inheritance-in-angularjs/14049482#14049482

http://stackoverflow.com/questions/14908133/what-is-the-difference-between-vs-and-in-angularjs

https://egghead.io/lessons/angularjs-isolate-scope-expression-binding

https://thinkster.io/egghead/directive-to-directive-communication/

videos

performance

http://bahmutov.calepin.co/improving-angular-web-app-performance-example.html

websockets

http://stackoverflow.com/questions/16280747/sending-message-to-a-specific-connected-users-using-websocket

http://stackoverflow.com/questions/13546424/how-to-wait-for-a-websockets-readystate-to-change\

http://stackoverflow.com/questions/17301269/can-websocket-addresses-carry-parameters

http://stackoverflow.com/questions/25904478/send-extra-information-on-websocket-connection-creation

https://github.com/einaros/ws/blob/master/lib/WebSocket.js#L272

http://gonzalo123.com/2014/08/25/playing-with-websockets-angularjs-and-socket-io/

http://g00glen00b.be/spring-angular-sockjs/

http://fdietz.github.io/2015/04/15/day-3-how-to-build-your-own-team-chat-in-five-days-expressjs-socket-io-and-angularjs.html

tutorials

https://egghead.io/instructors/john-lindquist

articles

Checking online status in AngularJS

talks

angular-cngage 9/3/14

Sharon, Sunny, Brent, Dick Williams

mdtest

synchronization

https://github.com/jonashuckestein/node-object-sync

https://github.com/jonashuckestein/node-object-sync

https://github.com/sayrer/json-sync

articles to read

https://weblogs.asp.net/dwahlin/creating-custom-angularjs-directives-part-3-isolate-scope-and-function-parameters

http://ng-cookbook.s3.amazonaws.com/ng-cookbook.pdf

http://www.ng-newsletter.com/posts/directives.html

typeahead with angular

http://jsfiddle.net/prakgarnly/uD6GJ/


try catch and fail creating factory service called by controllers

Angular guide

javascript design patterns

testing

http://jsfiddle.net/fdietz/2Ny8x/

authentication

reactJS

ng slider

coding styles

$resource

angular 2way to service

scopes and digest

AngularJS performs an OPTIONS HTTP request for a cross-origin resource jsbin

restangular

cors option request html5rocks

angularjs-authentication-with-cookies-vs-token

rethinkdb javascript guide

angular-seed instead ov yo angular

mongodb restangular

egghead tutorials

local storage

directive tutorial

authrntication

https://github.com/IgorMinar/angular-phonecat-tutorial

https://github.com/ajoslin/angular-mobile-nav

https://github.com/angular-widgets/angular-jqm

polling

http://coenraets.org/blog/2013/11/sample-mobile-application-with-angularjs/ coenraets wine cellar

http://angularjs.org/ https://github.com/angular/angular.js

http://www.ekito.fr/people/?p=3224

http://angular-tips.com/blog/2013/08/why-does-angular-dot-js-rock/

MEAN Mongo Express Angular Node

tutorial

rest mongo express

todolist tut

avoid callback hell, fire events instead see

generic pool object for mysql connection from node

orm for mongodb

first parameter of callback is error

supertest and chai for testing api in mocha

http://www.rethinkdb.com/ more relational like

npm --save cats

angular owns the dom , jquery tries to

ngmodules.org is replacing jquery stuff

angular batarang - most useful chrome extension

http://egghead.io to learn angular

for model in angular use https://github.com/mgonto/restangular

faisal does yo angular:service apiService

faisal.abid@gmail.com @FaisalAbid