2.0 12

[ANgular 2.0] Tutorial rc.5 migration

AngularJS Tutorial 2.0 RC4 to RC5 Migration Migration Step !!! Node V5.x.x / npm 3.x.x 이상 필요 !!! 1. quick-start의 json 파일 Copy&Pastehttps://angular.io/docs/ts/latest/quickstart.html 2. 프로젝트의 node_modules 제거 3. npn installnpm install @angular/{core,common,compiler,platform-browser,platform-browser-dynamic} –save Peer Dependency 오류 발생시 직접 설치 해야함 4. npm start start error 발생할 경우 -> package.json 변경"st..

ANgularJS 2.0+ 2016.09.29

[AngularJS 2.0] AngularJS 2.0 Tutorial3_routing

Angular.io 에서 제공하는 튜토리얼을 정리한 것입니다. 사진 클릭시 튜토리얼로 이동!! RC4기준 !!6. Routing (1) - 파일 분리하기1. 이전 프로젝트와 달라지는 것 대시보드 화면 추가Heroes와 대시보드 화면 이동선택된 히어로의 디테일을 다른 화면에서 보여주기clicking a deep link in an email opens the detail view for a particular hero 2. 폴더 구조 3. Plan AppComponent를 네비게이션만 다루는 하나의 application shell 로 변경 Heroes concerns을 AppComponent와 HeroesComponent로 나누어 재위치 routing 추가 DashboardComponent 생성 Tie D..

ANgularJS 2.0+ 2016.09.19

[AngularJS 2.0] AngularJS 2.0 Tutorial2_service

Angular.io 에서 제공하는 튜토리얼을 정리한 것입니다. 사진 클릭시 튜토리얼로 이동!! RC4기준 !!5. Service 1. 폴더 구조 2. Chapter4의 issue - hero를 정의하는 것은 컴포넌트의 일이 아니다.- 공유하기가 쉽지 않다. new 키워드를 대체하기 위하여private property를 정의하기 위해 constructor를 추가.constructor를 사용하기 위하여 컴포넌트에 provider 사용. 3. app.component.ts123456789101112131415161718192021222324252627282930313233343536import { Component, OnInit } from '@angular/core';import { Hero } from '..

ANgularJS 2.0+ 2016.09.19

[AngularJS 2.0] AngularJS 2.0 Tutorial1

Angular.io 에서 제공하는 튜토리얼을 정리한 것입니다. 사진 클릭시 튜토리얼로 이동!! RC4기준 !!1. Introduction package.json 프로젝트에 필요한 package 들의 listtsconfig.json TyleScript compiler configration file.typings.json identifies typeScript definition filessystemjs.config.js SystemJS 정의 파일 2. The Hero Editor 1. 프로젝트 구조 2. app.component.ts123456789101112131415161718192021222324import { Component } from '@angular/core';export class Her..

ANgularJS 2.0+ 2016.09.19

[NPM] PEER DEPENDENCY? RC5?

아마 첫?오류 상황 Couldn't read dependencies 프록시문제? 해결방법제시1 / 해결방법제시2 peerdependency 추가안되서 생긴 문제? 해결방법제시3 script에 start안써서 생긴 문제? 해결방법제시4 해결방법제시1~4 모두 실패. 해결방법제시5try deleting the node_modules directory and all npm temporary files and directories, and then run npm install again. 해결방법제시5도 실패 안되................... 누가좀알려주세요..................... 버전충돌이라는 이야기도 있고 프록시 문제라는 이야기도 있고 소스상의 문제라는 이야기도 있고아직 원인규명 못함. ..

오류관리 2016.08.17

[AngularJS 2.0] AngularJS 2.0 Tutorial 흐름

목차 프로젝트 분석 흐름이 순서대로 따라가며 보면 편할 듯하다. 프로젝트 필요하신 분은 깃헙 (https://github.com/eunhyekimkeh/angularjs2_tutorial) 또는 댓글주세요! 깃헙에 파일 제대로 올라가있는지 모르겠음앞 내용들의 추가 내용template : 뷰 역할component : 뷰&모델의 상태 관리service : 비즈니스 로직import 하면 directive를 해줌provider : 서비스들 injectpipe : 다국어 처리할 때 도 같은 것, 시스템에가서 설정에 맞게 값을 반환 (@angular/common)browser-pipe.ts : 미리 올려 놓는 것?any ofen : 0.0.0.0 으로 IP 잡기 routes.ts 는 동기방식path : 실제 url..

ANgularJS 2.0+ 2016.08.05

TypeScript

TypeScript 2016.09.19 추가 내용 1. Typescript는 JS의 상위집합(superset) 언어.Typescript = ES6(classes, modules) + TYpes + AnnotationsGenerics나 Lambdas를 이용할 수 있다. 2. Javascript의 결점 보완OOP 지원Primitive Type 지원으로 가독성의 장점 3. 프리컴파일 언어 4. Javascript의 미래버전인 Ecma Script 사용 TypeScript Documentation의 BasicTypes 항목을 옮긴 것입니다. 저의 필요에 의한 것만 옮겨왔음으로 직접 보고 확인하시길 추천합니다. Data Type let javascript의 var를 대신함. String multiple line ..

ANgularJS 2.0+ 2016.08.03

[AngularJS 2.0] App Lifecycle

링크에서 내용 찾아보세요.https://mayajuni.github.io/2016/10/21/angular2-lifecycle-hooks/ ngOnInit angular가 data bound input property 초기화한 후 directive/component 초기화ngOnInit is invoked after the component is constructed and is the best place to initialize property values.constructor와 비슷하지만 시점의 차이가 있다. 참고Timing : after the first ngOnChanges.ngOnChangesangular 가 data bound input property를 설정 한 후 respond, 즉 inp..

ANgularJS 2.0+ 2016.08.03
반응형