透過Javascript關閉jQuery colorbox


原本要用window.close()可以javascript視窗,即使視窗是個popup也可行,但是最近發現透過

jquery開啟之Colorbox卻沒辦法用該方式關閉,

Angular 4:Directive

這邊記錄幾個Angular 的directive使用方法:
分別為

1. ngIf
2. ngIf-else
3. ngStyle
4. ngClass
5. ngFor

Angular 4:Data Binding




Angular data bnding 有以下幾種data binding方式:


String Interpolation
String Interpolation是可以將程式的變數輸出至template中顯示,使用方式是將變數或是function放在{{ 變數/function }},即可讓變數顯示在template上。

Angular 4: Component


建立component

透過
ng g c comp1(Component名稱)
指令會在目錄下建立一個目錄,名稱為ComponentName,同時會建立幾個相關檔案,
檔名以Component名稱開頭,

Git 學習筆記


這裡記錄透過Git command line操作Git的筆記。

Angular CLI 基本使用


安裝Angular-CLI

電腦上必須安裝Nodejs,才能安裝AngularCLI,
安裝NodeJs可至官網下載最新版本,更新NodeJs也是從官網下載最新版本即可

Java Spring Framework 筆記 - Autowiring (2)

這篇記錄透過 Annotation來做到 Spring的 autowiring。