Skip to content

Commit

Permalink
KAUG#3 complete to translate the first paragraph & partial part of he…
Browse files Browse the repository at this point in the history
…ader.
  • Loading branch information
Lee Wonjae authored and Lee Wonjae committed Apr 16, 2013
1 parent 7605c77 commit f3124dd
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions docs/content/guide/directive.ngdoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,21 @@
@name Directives
@description

Directives는 HTML의 새로운 속임수를 알려주는 방법입니다!
Directives are a way to teach HTML new tricks. During DOM compilation directives are matched
Directives는 HTML의 새로운 속임수를 알려주는 방법입니다. During DOM compilation directives are matched
against the HTML and executed. This allows directives to register behavior, or transform the DOM.

Angular comes with a built in set of directives which are useful for building web applications but
can be extended such that HTML can be turned into a declarative domain specific language (DSL).

# Invoking directives from HTML
# HTML에서 Directives를 호출하기!
# HTML에서 지시자(Directives) 호출하기

Directives have camel cased names such as `ngBind`. The directive can be invoked by translating
the camel case name into snake case with these special characters `:`, `-`, or `_`. Optionally the
directive can be prefixed with `x-`, or `data-` to make it HTML validator compliant. Here is a
list of some of the possible directive names: `ng:bind`, `ng-bind`, `ng_bind`, `x-ng-bind` and
`data-ng-bind`.
지시자(Directive)는 'ngBind'와 같은 카멜 표기된 이름들을 가집니다. 그 지시자는 ':','-','_' 등의 특수문자를
이용한 snake 표기 이름으로 변환되어 호출될 수도 있습니다. HTML 검증 준수를 위해 추가적으로 'x-' 또는 'data-' 등의
접두사가 붙을 수도 있습니다. 그래서 이것들이 사용 가능한 지시자의 이름들입니다. : `ng:bind`, `ng-bind`, `ng_bind`,
`x-ng-bind` and `data-ng-bind`.

The directives can be placed in element names, attributes, class names, as well as comments. Here
are some equivalent examples of invoking `myDir`. (However, most directives are restricted to
attribute only.)
지시자는 요소의 이름, 속성, class 뿐만 아니라 주석에도 표시될 수 있습니다. 'myDir'을 호출 하는 것과 동일한 몇가지 예제들이 여기 있습니다.
(하지만, 대부분의 지시자들은 속성으로만 사용되도록 제한되어 있습니다.)

<pre>
<span my-dir="exp"></span>
Expand All @@ -29,8 +25,7 @@ attribute only.)
<!-- directive: my-dir exp -->
</pre>

Directives can be invoked in many different ways, but are equivalent in the end result as shown in
the following example.
지시자는 다양한 방법으로 호출되어집니다, 하지만 결과는 아래의 예제에서 보듯이 모두 동일합니다.

<doc:example>
<doc:source >
Expand Down

0 comments on commit f3124dd

Please sign in to comment.