ng-lazyload-image
๐ผ A small library for lazy loading images for Angular apps with zero dependencies
ํ์ผ ํ์๊ธฐ
์ต์ข ๋ฒ์ ๋ค์ด๋ก๋ (.zip)- nodejs.yml
- async-images.component.ts
- bg-image.component.ts
- big-images.component.ts
- changing-image.component.ts
- custom-observer.ts
- default-image.component.ts
- fade-in-image.component.ts
- offset.component.ts
- on-state-change.component.ts
- pixelated-image.component.ts
- responsive-image.component.ts
- scroll-container.component.ts
- app.component.ts
- app.module.ts
- favicon.ico
- index.html
- main.ts
- polyfills.ts
- styles.css
- .editorconfig
- .gitignore
- angular.json
- browserslist
- package-lock.json
- package.json
- README.md
- tsconfig.app.json
- tsconfig.json
- tslint.json
- preset.test.ts
- hooks.ts
- hooks.test.ts
- rect.test.ts
- scroll-listener.test.ts
- hooks.ts
- rect.ts
- hooks.test.ts
- hooks.ts
- css.util.test.ts
- css.util.ts
- util.ts
- lazyload-image.directive.ts
- lazyload-image.module.ts
- lazyload-image.ts
- token.ts
- types.ts
- .editorconfig
- .gitignore
- .npmignore
- CODE_OF_CONDUCT.md
- CONTRIBUTING.md
- index.ts
- LICENSE
- netlify.toml
- package-lock.json
- package.json
- README.md
- setup-jest.ts
- tsconfig.json
- tsconfig.spec.json
๐ ์ค์น ๊ฐ์ด๋
1. ์ฝ๋ ๋ด๋ ค๋ฐ๊ธฐ
git clone https://github.com/tjoskar/ng-lazyload-image
๊นํ๋ธ์์ ํ๋ก์ ํธ ์ฝ๋ ์ ์ฒด๋ฅผ ๋ด ์ปดํจํฐ๋ก ๋ด๋ ค๋ฐ์ต๋๋ค.
cd ng-lazyload-image
๋ฐฉ๊ธ ๋ด๋ ค๋ฐ์ ํ๋ก์ ํธ ํด๋ ์์ผ๋ก ์ด๋ํฉ๋๋ค.
2. Node.js
์ฌ์ ์ถ์ฒ์ฌ์ ์ค๋น๋ฌผ
$ npm install ng-lazyload-image
package.json์ ๋ช ์๋ ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ค์ ๋ด๋ ค๋ฐ์ ์ค์นํฉ๋๋ค.
$ yarn add ng-lazyload-image
์ด ๋ช ๋ น์ด๋ฅผ ํฐ๋ฏธ๋์ ๊ทธ๋๋ก ์ ๋ ฅํด ์คํํ์ธ์.
๋ช
๋ น์ด ์คํ ํ ํฐ๋ฏธ๋์ ๋ํ๋๋ ์ฃผ์(๋ณดํต http://localhost:3000 ํํ)๋ฅผ ๋ธ๋ผ์ฐ์ ์์ ์ด์ด๋ณด์ธ์.
์ด ๋ ํฌ์ README์ ์ ํ ์ค์ ๋ช ๋ น์ด๋ฅผ ๊ทธ๋๋ก ๊ฐ์ ธ์์ต๋๋ค.
// repository documentation
Was this content helpful?
(0 ratings)
