Angular

From 탱이의 잡동사니
Revision as of 14:10, 8 January 2018 by Pchero (talk | contribs) (→‎Overview)
Jump to navigation Jump to search

Overview

Angular 내용 정리.

Basics

Augular is a framework for building client applications in HTML, CSS, and JavaScript / TypeScript.

  • Gives our applications a clean structure.
  • Includes a lot of re-usable code.
  • Makes our applications more testable.

Component

Encapsulates the template, data and the behavior of a view.

Directive

To modify DOM elements and/or extend their behavior.

Observable

Observable은 Angular 에서 사용되는 객체로(자바 스크립트 객체가 아님) 일반적으로 다음과 같은 형태로 사용된다. <source lang=javascript> observable_return_function.subscribe() </source> observable_return_function 에 의해 정의된 특정 조건이 갖춰지면 observable 이 생성되고, .subscribe 를 통해 observable 함수가 실행된다.

Tutorial