From 58a69b1b99b35c8947691cd5fa27c62258de6f3c Mon Sep 17 00:00:00 2001 From: Wooram Jun Date: Fri, 26 Feb 2016 13:19:54 +0900 Subject: [PATCH 1/2] add quotation marks --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a86807f..041c55b 100644 --- a/README.md +++ b/README.md @@ -313,7 +313,7 @@ module.factory('Service', function ($rootScope, $timeout, MyCustomDependency1, M In order to prevent problems with minification, you can automatically generate the array definition syntax from the standard one using tools like [ng-annotate](https://github.com/olov/ng-annotate) (and grunt task [grunt-ng-annotate](https://github.com/mzgol/grunt-ng-annotate)). - Another alternative will be to use $inject like: + Another alternative will be to use `$inject` like: ```JavaScript angular From 63cfbb58bda494d4b66ff0cac378f6c2fe156681 Mon Sep 17 00:00:00 2001 From: Wooram Jun Date: Fri, 26 Feb 2016 13:21:16 +0900 Subject: [PATCH 2/2] sync the Korean document to the original --- README-ko-kr.md | 75 ++++++++++++++++++++++++++++--------------------- 1 file changed, 43 insertions(+), 32 deletions(-) diff --git a/README-ko-kr.md b/README-ko-kr.md index 59b4c2d..0e45a68 100644 --- a/README-ko-kr.md +++ b/README-ko-kr.md @@ -244,6 +244,7 @@ AngularJS 디렉티브는 간결하게 만들고, 표준 속성(attribute)보다 * `document` 대신 `$document` * `$.ajax` 대신 `$http` * `window.location`나 `$window.location` 대신 `$location` + * `document.cookie` 대신 `$cookies` 이렇게 하면 테스트가 쉬워지고, 예상치 못한 동작도 방지할 수 있습니다 (예를 들면 `setTimeout`에서 `$scope.$apply`를 잊는 다든가). @@ -311,6 +312,22 @@ module.factory('Service', function ($rootScope, $timeout, MyCustomDependency1, M ``` minification에서 발생하는 문제를 피하려면, [ng-annotate](https://github.com/olov/ng-annotate) (Grunt에서는 [grunt-ng-annotate](https://github.com/mzgol/grunt-ng-annotate)) 같은 도구를 사용해 자동으로 배열식 명명 문법을 생성시킬 수 있습니다. + + 또는, 이렇게 `$inject`를 사용하는 방법도 있습니다. + + ```JavaScript + angular + .module("app") + .controller("Homepage", Homepage); + + Homepage.$inject = ["$scope", "ngRoute"]; + + function Homepage($scope, ngRoute) { + // ... + } + ``` + + * `controller as` 문법을 사용하세요. ``` @@ -528,7 +545,7 @@ module.factory('Service', function ($rootScope, $timeout, MyCustomDependency1, M * 그 외의 서비스들은 모두 lowerCamelCase를 사용합니다. -* 모든 비지니스 로직을 서비스로 캡슐화합니다. 그리고 이 서비스를 `모델`로 사용하요. 예시: +* 모든 비즈니스 로직을 서비스로 캡슐화합니다. 그리고 이 서비스를 `model`로 사용하요. 예시: ```Javascript //Order는 '모델'임 angular.module('Store') @@ -661,57 +678,51 @@ $scope.divStyle = { # 기여자 명단 -[mgechev](https://github.com/mgechev) |[morizotter](https://github.com/morizotter) |[pascalockert](https://github.com/pascalockert) |[yanivefraim](https://github.com/yanivefraim) |[ericguirbal](https://github.com/ericguirbal) |[agnislav](https://github.com/agnislav) | +[mgechev](https://github.com/mgechev) |[morizotter](https://github.com/morizotter) |[pascalockert](https://github.com/pascalockert) |[chatii2412](https://github.com/chatii2412) |[yanivefraim](https://github.com/yanivefraim) |[ericguirbal](https://github.com/ericguirbal) | :---: |:---: |:---: |:---: |:---: |:---: | -[mgechev](https://github.com/mgechev) |[morizotter](https://github.com/morizotter) |[pascalockert](https://github.com/pascalockert) |[yanivefraim](https://github.com/yanivefraim) |[ericguirbal](https://github.com/ericguirbal) |[agnislav](https://github.com/agnislav) | +[mgechev](https://github.com/mgechev) |[morizotter](https://github.com/morizotter) |[pascalockert](https://github.com/pascalockert) |[chatii2412](https://github.com/chatii2412) |[yanivefraim](https://github.com/yanivefraim) |[ericguirbal](https://github.com/ericguirbal) | -[mainyaa](https://github.com/mainyaa) |[ray7551](https://github.com/ray7551) |[LeonardCModoran](https://github.com/LeonardCModoran) |[elfinxx](https://github.com/elfinxx) |[Xuefeng-Zhu](https://github.com/Xuefeng-Zhu) |[rubystream](https://github.com/rubystream) | +[agnislav](https://github.com/agnislav) |[mainyaa](https://github.com/mainyaa) |[ray7551](https://github.com/ray7551) |[LeonardCModoran](https://github.com/LeonardCModoran) |[elfinxx](https://github.com/elfinxx) |[Xuefeng-Zhu](https://github.com/Xuefeng-Zhu) | :---: |:---: |:---: |:---: |:---: |:---: | -[mainyaa](https://github.com/mainyaa) |[ray7551](https://github.com/ray7551) |[LeonardCModoran](https://github.com/LeonardCModoran) |[elfinxx](https://github.com/elfinxx) |[Xuefeng-Zhu](https://github.com/Xuefeng-Zhu) |[rubystream](https://github.com/rubystream) | +[agnislav](https://github.com/agnislav) |[mainyaa](https://github.com/mainyaa) |[ray7551](https://github.com/ray7551) |[LeonardCModoran](https://github.com/LeonardCModoran) |[elfinxx](https://github.com/elfinxx) |[Xuefeng-Zhu](https://github.com/Xuefeng-Zhu) | -[SullyP](https://github.com/SullyP) |[giacomocusinato](https://github.com/giacomocusinato) |[susieyy](https://github.com/susieyy) |[lukaszklis](https://github.com/lukaszklis) |[kuzzmi](https://github.com/kuzzmi) |[cironunes](https://github.com/cironunes) | +[SullyP](https://github.com/SullyP) |[lukaszklis](https://github.com/lukaszklis) |[giacomocusinato](https://github.com/giacomocusinato) |[susieyy](https://github.com/susieyy) |[rubystream](https://github.com/rubystream) |[jmblog](https://github.com/jmblog) | :---: |:---: |:---: |:---: |:---: |:---: | -[SullyP](https://github.com/SullyP) |[giacomocusinato](https://github.com/giacomocusinato) |[susieyy](https://github.com/susieyy) |[lukaszklis](https://github.com/lukaszklis) |[kuzzmi](https://github.com/kuzzmi) |[cironunes](https://github.com/cironunes) | +[SullyP](https://github.com/SullyP) |[lukaszklis](https://github.com/lukaszklis) |[giacomocusinato](https://github.com/giacomocusinato) |[susieyy](https://github.com/susieyy) |[rubystream](https://github.com/rubystream) |[jmblog](https://github.com/jmblog) | -[guiltry](https://github.com/guiltry) |[MertSKaan](https://github.com/MertSKaan) |[mingchen](https://github.com/mingchen) |[tornad](https://github.com/tornad) |[jmblog](https://github.com/jmblog) |[cavarzan](https://github.com/cavarzan) | +[cironunes](https://github.com/cironunes) |[guiltry](https://github.com/guiltry) |[MertSKaan](https://github.com/MertSKaan) |[mingchen](https://github.com/mingchen) |[tornad](https://github.com/tornad) |[cavarzan](https://github.com/cavarzan) | :---: |:---: |:---: |:---: |:---: |:---: | -[guiltry](https://github.com/guiltry) |[MertSKaan](https://github.com/MertSKaan) |[mingchen](https://github.com/mingchen) |[tornad](https://github.com/tornad) |[jmblog](https://github.com/jmblog) |[cavarzan](https://github.com/cavarzan) | +[cironunes](https://github.com/cironunes) |[guiltry](https://github.com/guiltry) |[MertSKaan](https://github.com/MertSKaan) |[mingchen](https://github.com/mingchen) |[tornad](https://github.com/tornad) |[cavarzan](https://github.com/cavarzan) | -[nikshulipa](https://github.com/nikshulipa) |[astalker](https://github.com/astalker) |[clbn](https://github.com/clbn) |[atodorov](https://github.com/atodorov) |[apetro](https://github.com/apetro) |[valgreens](https://github.com/valgreens) | +[kuzzmi](https://github.com/kuzzmi) |[cryptojuice](https://github.com/cryptojuice) |[astalker](https://github.com/astalker) |[clbn](https://github.com/clbn) |[atodorov](https://github.com/atodorov) |[apetro](https://github.com/apetro) | :---: |:---: |:---: |:---: |:---: |:---: | -[nikshulipa](https://github.com/nikshulipa) |[astalker](https://github.com/astalker) |[clbn](https://github.com/clbn) |[atodorov](https://github.com/atodorov) |[apetro](https://github.com/apetro) |[valgreens](https://github.com/valgreens) | +[kuzzmi](https://github.com/kuzzmi) |[cryptojuice](https://github.com/cryptojuice) |[astalker](https://github.com/astalker) |[clbn](https://github.com/clbn) |[atodorov](https://github.com/atodorov) |[apetro](https://github.com/apetro) | -[mariolamacchia](https://github.com/mariolamacchia) |[dwmkerr](https://github.com/dwmkerr) |[dchest](https://github.com/dchest) |[gsamokovarov](https://github.com/gsamokovarov) |[grvcoelho](https://github.com/grvcoelho) |[yassirh](https://github.com/yassirh) | +[whoan](https://github.com/whoan) |[valgreens](https://github.com/valgreens) |[meetbryce](https://github.com/meetbryce) |[dwmkerr](https://github.com/dwmkerr) |[dchest](https://github.com/dchest) |[gsamokovarov](https://github.com/gsamokovarov) | :---: |:---: |:---: |:---: |:---: |:---: | -[mariolamacchia](https://github.com/mariolamacchia) |[dwmkerr](https://github.com/dwmkerr) |[dchest](https://github.com/dchest) |[gsamokovarov](https://github.com/gsamokovarov) |[grvcoelho](https://github.com/grvcoelho) |[yassirh](https://github.com/yassirh) | +[whoan](https://github.com/whoan) |[valgreens](https://github.com/valgreens) |[meetbryce](https://github.com/meetbryce) |[dwmkerr](https://github.com/dwmkerr) |[dchest](https://github.com/dchest) |[gsamokovarov](https://github.com/gsamokovarov) | -[bargaorobalo](https://github.com/bargaorobalo) |[hermankan](https://github.com/hermankan) |[jabhishek](https://github.com/jabhishek) |[jesselpalmer](https://github.com/jesselpalmer) |[capaj](https://github.com/capaj) |[johnnyghost](https://github.com/johnnyghost) | +[grvcoelho](https://github.com/grvcoelho) |[yassirh](https://github.com/yassirh) |[bargaorobalo](https://github.com/bargaorobalo) |[hermankan](https://github.com/hermankan) |[jabhishek](https://github.com/jabhishek) |[jesselpalmer](https://github.com/jesselpalmer) | :---: |:---: |:---: |:---: |:---: |:---: | -[bargaorobalo](https://github.com/bargaorobalo) |[hermankan](https://github.com/hermankan) |[jabhishek](https://github.com/jabhishek) |[jesselpalmer](https://github.com/jesselpalmer) |[capaj](https://github.com/capaj) |[johnnyghost](https://github.com/johnnyghost) | +[grvcoelho](https://github.com/grvcoelho) |[yassirh](https://github.com/yassirh) |[bargaorobalo](https://github.com/bargaorobalo) |[hermankan](https://github.com/hermankan) |[jabhishek](https://github.com/jabhishek) |[jesselpalmer](https://github.com/jesselpalmer) | -[jordanyee](https://github.com/jordanyee) |[nacyot](https://github.com/nacyot) |[meetbryce](https://github.com/meetbryce) |[mischkl](https://github.com/mischkl) |[kirstein](https://github.com/kirstein) |[mo-gr](https://github.com/mo-gr) | +[capaj](https://github.com/capaj) |[johnnyghost](https://github.com/johnnyghost) |[jordanyee](https://github.com/jordanyee) |[nacyot](https://github.com/nacyot) |[mariolamacchia](https://github.com/mariolamacchia) |[mischkl](https://github.com/mischkl) | :---: |:---: |:---: |:---: |:---: |:---: | -[jordanyee](https://github.com/jordanyee) |[nacyot](https://github.com/nacyot) |[meetbryce](https://github.com/meetbryce) |[mischkl](https://github.com/mischkl) |[kirstein](https://github.com/kirstein) |[mo-gr](https://github.com/mo-gr) | +[capaj](https://github.com/capaj) |[johnnyghost](https://github.com/johnnyghost) |[jordanyee](https://github.com/jordanyee) |[nacyot](https://github.com/nacyot) |[mariolamacchia](https://github.com/mariolamacchia) |[mischkl](https://github.com/mischkl) | -[mortonfox](https://github.com/mortonfox) |[cryptojuice](https://github.com/cryptojuice) |[dreame4](https://github.com/dreame4) |[olov](https://github.com/olov) |[vorktanamobay](https://github.com/vorktanamobay) |[sahat](https://github.com/sahat) | +[kirstein](https://github.com/kirstein) |[mo-gr](https://github.com/mo-gr) |[mortonfox](https://github.com/mortonfox) |[dreame4](https://github.com/dreame4) |[nikshulipa](https://github.com/nikshulipa) |[olov](https://github.com/olov) | :---: |:---: |:---: |:---: |:---: |:---: | -[mortonfox](https://github.com/mortonfox) |[cryptojuice](https://github.com/cryptojuice) |[dreame4](https://github.com/dreame4) |[olov](https://github.com/olov) |[vorktanamobay](https://github.com/vorktanamobay) |[sahat](https://github.com/sahat) | +[kirstein](https://github.com/kirstein) |[mo-gr](https://github.com/mo-gr) |[mortonfox](https://github.com/mortonfox) |[dreame4](https://github.com/dreame4) |[nikshulipa](https://github.com/nikshulipa) |[olov](https://github.com/olov) | -[ganchiku](https://github.com/ganchiku) |[kaneshin](https://github.com/kaneshin) |[imaimiami](https://github.com/imaimiami) |[dooart](https://github.com/dooart) |[thomastuts](https://github.com/thomastuts) |[VladimirKazan](https://github.com/VladimirKazan) | +[vorktanamobay](https://github.com/vorktanamobay) |[sahat](https://github.com/sahat) |[ganchiku](https://github.com/ganchiku) |[kaneshin](https://github.com/kaneshin) |[imaimiami](https://github.com/imaimiami) |[andela-abankole](https://github.com/andela-abankole) | :---: |:---: |:---: |:---: |:---: |:---: | -[ganchiku](https://github.com/ganchiku) |[kaneshin](https://github.com/kaneshin) |[imaimiami](https://github.com/imaimiami) |[dooart](https://github.com/dooart) |[thomastuts](https://github.com/thomastuts) |[VladimirKazan](https://github.com/VladimirKazan) | +[vorktanamobay](https://github.com/vorktanamobay) |[sahat](https://github.com/sahat) |[ganchiku](https://github.com/ganchiku) |[kaneshin](https://github.com/kaneshin) |[imaimiami](https://github.com/imaimiami) |[andela-abankole](https://github.com/andela-abankole) | -[andela-abankole](https://github.com/andela-abankole) |[grapswiz](https://github.com/grapswiz) |[coderhaoxin](https://github.com/coderhaoxin) |[giantray](https://github.com/giantray) |[ntaoo](https://github.com/ntaoo) |[kuzmeig1](https://github.com/kuzmeig1) | +[thomastuts](https://github.com/thomastuts) |[UrielMiranda](https://github.com/UrielMiranda) |[VladimirKazan](https://github.com/VladimirKazan) |[dooart](https://github.com/dooart) |[grapswiz](https://github.com/grapswiz) |[coderhaoxin](https://github.com/coderhaoxin) | :---: |:---: |:---: |:---: |:---: |:---: | -[andela-abankole](https://github.com/andela-abankole) |[grapswiz](https://github.com/grapswiz) |[coderhaoxin](https://github.com/coderhaoxin) |[giantray](https://github.com/giantray) |[ntaoo](https://github.com/ntaoo) |[kuzmeig1](https://github.com/kuzmeig1) | - -[chatii2412](https://github.com/chatii2412) | -:---: | -[chatii2412](https://github.com/chatii2412) | - +[thomastuts](https://github.com/thomastuts) |[UrielMiranda](https://github.com/UrielMiranda) |[VladimirKazan](https://github.com/VladimirKazan) |[dooart](https://github.com/dooart) |[grapswiz](https://github.com/grapswiz) |[coderhaoxin](https://github.com/coderhaoxin) | -## 한글화 기여자 명단 +[giantray](https://github.com/giantray) |[ntaoo](https://github.com/ntaoo) |[kuzmeig1](https://github.com/kuzmeig1) | +:---: |:---: |:---: | +[giantray](https://github.com/giantray) |[ntaoo](https://github.com/ntaoo) |[kuzmeig1](https://github.com/kuzmeig1) | -[chatii2412](https://github.com/chatii2412) | -:---: | -[chatii2412](https://github.com/chatii2412) |