Skip to content

wd48/modern_vue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 

Repository files navigation

modern_vue

Ch2

  • 밀접하게 연결되어 있는 컴포넌트들의 이름에 대한 지침
    • '부모 컴포넌트와 밀접하게 연결된 자식 컴포넌트는 부모 컴포넌트의 이름을 접두사로 포함해야 한다'

Local error

  • from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, chrome-untrusted, https. link
npm install http-server -g
npm http-server
나온 목록 중 하나 선택해서 접속

SOP (Same Origin Policy : 동일 출처 정책)
: 어떤 출처 (origin)에서 불러온 문서나 스크립트가 다른 출처에서 가져온 리소스와 상호작용하는 것을 제한하는 브라우저의 보안 방식

How to run the code?


you will need to put the code under a HTTP server to run the code inside this folder. Opening index.html directily as a file in a browser won't work.

if you do not have a HTTP server installed, you can use the following command to install http-server, which is a simple and easy-to-use command-line HTTP server.

npm install http-server -g

Once it is installed, switch to each stage folder and run http-server and open URL http://localhost:8080 in your browser. For example, to run the stage1 code, you can do with the following steps.

$ cd stage1
$ http-server

You can specify the port number to be other than 8080. For example, with command http-server -p 3030, port 3030 will be used.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published