http://www.deepspacesparkle.com/2013/01/02/double-loading-painting-technique/
Plus 8 tips for teaching children art
http://www.deepspacesparkle.com/2011/11/18/top-eight-tips-for-teaching-art-to-children/
▼
2016年12月29日 星期四
2016年12月20日 星期二
[MEAN] Tutorial
https://thinkster.io/tutorials/mean-stack/creating-schemas-with-mongoose
Self-study notes:
@ AngularApp.js
define the url -> controller -> view.html relationship
define "otherwise" page redirection
.controller
@ AngularApp.js
- to tell ui-router where to place the javascript-triggered template view
return common object for different controllers
can keep data for an application lifetime
main logics should go here than in controllers
- bridge between AngularJS controller and view
- can bind with functions or variables
- {{hhhhheelllooooo}} as notation in view
- defines config, which defines routes
- defines controllers
- defines factories, blablabla ...


Reference
https://tylermcginnis.com/angularjs-factory-vs-service-vs-provider/
Self-study notes:
what is state ?
.state@ AngularApp.js
define the url -> controller -> view.html relationship
define "otherwise" page redirection
.controller
@ AngularApp.js
where is view ?
place <ui-view></ui-view> into index.ejs- to tell ui-router where to place the javascript-triggered template view
what is factory ?
kind of an Angular servicereturn common object for different controllers
can keep data for an application lifetime
main logics should go here than in controllers
what is data-binding ?
to allow showing synchronised model data into view at all time
- AngularJS will be responsible for this
- note for the special dollar signwhat is special with $scope ?
- bridge between AngularJS controller and view
- can bind with functions or variables
- {{hhhhheelllooooo}} as notation in view
Any difference between .config and .run ?
Config block > service > injector > run blockStructure of an AngularJS app:
- defines config, which defines routes
- defines controllers
- defines factories, blablabla ...

Why there is a $ sign for some variables?
AngularJS will inject these special-defined variables into the functionsA look as sample on my "sticker" function:

Reference
https://tylermcginnis.com/angularjs-factory-vs-service-vs-provider/
2016年12月19日 星期一
[MAC OS X] Add environment path
http://architectryan.com/2012/10/02/add-to-the-path-on-mac-os-x-mountain-lion/#.WFdQqbZ96MB