學習經驗
- 學一個新專案, 架環境, 1~2天沒回顧就會忘
- 學習新事物, 有些沒有必要當下了解的就記起來(歸類為暫時忽略)
- 語言特有符號是或表示式暫時記不住可先用gitbook記起來, 避免之後查半天
研究進度
Toturial
https://www.youtube.com/watch?list=PLOETEcp3DkCoNnlhE-7fovYvqwVPrRiY7&feature=player_embedded&v=U7NYTKgkZgo http://weblogs.asp.net/dwahlin/creating-a-typescript-workflow-with-gulp
暫時忽略
- webpack & SystemJS
- http://www.datchley.name/es6-promises/
Question
- compile es6 to es5 using typesript compiler ?
- compiler es6 to es5 need .d.ts file ? (e.g. es6-shim.d.ts)
- use es6-shim.js ->
- let browser support es6 func? but i compile es6 to es5 !!!(or compiler es6 to es5 also need es6-shim.js? )
- use es6+angular only?(never compiler es6 to es5)
- es6-shim.js use for that developer want to direct use es6 on browser ?
- es6-shim.d.ts use for tsCompiler compile to es6 ?
- many binding -> difficult to test ?
- install youtube : why AMD 's author st plugin
- 設定sudo 密碼
- test if without using
bootstrapto inject service, then usingproviderto inject that service in component level still work ? angular 官網的教學,
import from自動從node_modules載入相關檔案, 但youtube教學卻能從typings資料夾導入 ReferenceorderSys 安裝native systemjs 引入給html不能用, angular2也是一樣
after compile to es5, angular 2 still need es6-shim.js to support the the needed functionality on browser ?
============= [ 1 ] Typescript
- http://weblogs.asp.net/dwahlin/getting-started-with-es6-%E2%80%93-the-next-version-of-javascript
- http://chariotsolutions.com/blog/post/hitchikers-guide-ecmascript-2015es6-typescript-angular2-beginner/
- https://www.airpair.com/typescript/posts/typescript-development-with-gulp-and-sublime-text when use live-server, it seem like no use typings?
why System.import('app') come from src ??
import . from . equal to require
https://github.com/Microsoft/TypeScript/issues/2262
https://github.com/Microsoft/TypeScript/issues/247
see "mhegazy commented on Sep 1" section in above url