Difference between revisions of "AngularJS"
(→debug) |
(→2.0) |
||
Line 44: | Line 44: | ||
Victor Savkins blog post on digest | Victor Savkins blog post on digest | ||
http://blog.thoughtram.io/angular/2015/03/27/building-a-zippy-component-in-angular-2.html | |||
[http://twofuckingdevelopers.com/2015/04/angular-2-singleton-service/ singleton or DI] | |||
===ui-router=== | ===ui-router=== |
Revision as of 09:00, 26 May 2015
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
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
ui-router
http://scotch.io/tutorials/javascript/3-simple-tips-for-using-ui-router
directives
component based directives
http://www.yearofmoo.com/ @yearofmoo
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/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/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/
tutorials
https://egghead.io/instructors/john-lindquist
articles
Checking online status in AngularJS
talks
angular-cngage 9/3/14
Sharon, Sunny, Brent, Dick Williams
synchronization
https://github.com/jonashuckestein/node-object-sync
https://github.com/jonashuckestein/node-object-sync
https://github.com/sayrer/json-sync
articles to read
http://ng-cookbook.s3.amazonaws.com/ng-cookbook.pdf
http://www.ng-newsletter.com/posts/directives.html
http://jsfiddle.net/prakgarnly/uD6GJ/
try catch and fail creating factory service called by controllers
Angular guide
testing
http://jsfiddle.net/fdietz/2Ny8x/
authentication
reactJS
ng slider
coding styles
- controller styles
- promises w Q
- servics vs provider vs factory
- nodecors
- Access_control_CORS
- test-an-angularjs-service-with-jasmine
- mocking-angular-module-dependencies-in-jasmine-unit-tests
$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
angular-seed instead ov yo angular
https://github.com/IgorMinar/angular-phonecat-tutorial
https://github.com/ajoslin/angular-mobile-nav
https://github.com/angular-widgets/angular-jqm
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
MEAN Mongo Express Angular Node
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