This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
@, &, = integration scope | |
<div ng-app="phoneApp"> | |
<div ng-controller="AppCtrl"> | |
<phone number="1111111" network="network" make-call="leaveVoicemail(number, message)"></phone> | |
<phone number="2222222" network="network" make-call="leaveVoicemail(number, message)"></phone> | |
<phone number="3333333" network="network" make-call="leaveVoicemail(number, message)"></phone> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Simple transclude sample dom | |
<div ng-app="phoneApp"> | |
<div ng-controller="AppCtrl"> | |
<panel> | |
<div class="button">Click me!</div> | |
</panel> | |
</div> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
template을 초기 run할 때 캐싱하여 사용하기 zippy.html은 key name이다 | |
<div ng-app="app"> | |
<input type="text" ng-model="model.title"> | |
<input type="text" ng-model="model.content"> | |
<zippy title="{{model.title}}"> | |
The content is: {{model.content}} | |
</zippy> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
ng-view는 routing 되는 페이지를 바꾸어주는 역할을 한다 | |
<div ng-app="app"> | |
<ng-view></ng-view> | |
</div> | |
*/ | |
var app = angular.module("app", []); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
config($routeProvider) 의 $routeProvider is Constructor but controller's $route is instance of $routeProvider | |
<div ng-app="app"> | |
<ng-view></ng-view> | |
</div> | |
*/ | |
var app = angular.module("app", []); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
$routeParam 사용하기 in Controller | |
<div ng-app="app"> | |
<ng-view></ng-view> | |
</div> | |
*/ | |
var app = angular.module("app", []); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
$routeProvider의 redirectTo 사용하기 | |
<div ng-app="app"> | |
<ng-view></ng-view> | |
</div> | |
*/ | |
var app = angular.module("app", []); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
$routeProvider의 redirectTo 사용하기 | |
<div ng-app="app"> | |
<ng-view></ng-view> | |
</div> | |
*/ | |
var app = angular.module("app", []); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
/** | |
* StudyGPS Main Application | |
* by peter | |
*/ | |
var studyGpsApp = angular.module('studyGpsApp', [ | |
'ngCookies', | |
'ngResource', | |
'ngSanitize', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
System.config({ | |
//use typescript for compilation | |
transpiler: 'typescript', | |
//typescript compiler options | |
typescriptOptions: { | |
emitDecoratorMetadata: true | |
}, | |
//map tells the System loader where to look for things | |
map: { | |
app: './src' |