본문 바로가기

IT

(92)
[angluar] routerLink with path currentPath: localhost/users Reload Page=> localhost/users/servers (just from current location) Reload Page=> localhost/servers (absolute) Reload Page=> localhost/servers (relative)
[angular] href VS routerlink Home=> show the page with reloading Home=> show the page without reloading
[angular] Router 1. Register Routes In app.module.tsconst appRoutes: Routes = [ { path: '', component: HomeComponent }, { path: 'users', component: UsersComponent }, { path: 'servers', component: ServersComponent }]; @NgModule({ imports: [ RouterModule.forRoot(appRoutes) ]}) 2. Display Routes In XXX.html router-outlet is directive. Html: What is in the page.CSS: How to show the page.JavaScript: Functions in page.
[WEB] `와 '의 차이 ` : Note the backticks ( ` ) that define a JavaScript template literal for embedding the id. ':Note the single quotation marks(') that means strings containing
[Angular] How to add bootStrap in Angular App -Install bootStrap (run in project folder) :npm install --save bootstrap -Add bootStrap to your project:open .angular-cli.json file:add bootStrap path the styles section
[Angular] angular, databinding Databinding is communication between typescript with html. - HOW(from Typescript to Html)-string interpolation: {{ data }}-property binding: [property] = "data" - HOW(from Html to Typescript)-event binding: (event) = "expression" - HOW(combination)-Two-Way-Binding: [(ngModel)] = "data"
[Angular] index.html, app-root, ngModule @angular-SPA(Single Page Application) -index.html (in default) @what is the app-root in index.html-실제로 index.html를 크롬에서 보면 에디터에서 보이지않던 코드가 마지막부분에 추가되어져 있다. 이건 ts가 컴파일되면서 main.ts에 있는 컴포넌트 정보등을 추가한것으로 main.ts를보면 appModule정보를 참조한다. 그 appModule를 보면 안에서 appComponent를 정의, 선언하고 있다.(declarations) 그리고 appComponent안을 보면 컴포넌트의 selector 즉 선택자가 app-root로 되어져 있다. @간단하게 설명해보자면, index.html의 app-root는 다음과 같은 경로로..
Xcode시뮬레이터로 스크린샷 찍기 iOS Simulator - iPhone 6 Scale 50% 기준. cmd+shift+4, space 로 스샷 후 깔끔하게 떨어진다. 어플을 제작하는거 보다, 심사 준비하는게 더 빡세다고 느끼는 내가 이상한건가.. 매번 너무 귀찮다.