Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 81f61ef

Browse files
Merge pull request #3 from duynghiadev/dev
1. Cài đặt, khởi tạo dự án Angular và tạo HomeComponent
2 parents c2ad1f4 + aaa5943 commit 81f61ef

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+8559
-1
lines changed

‎shopapp-angular/.editorconfig

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Editor configuration, see https://editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
indent_style = space
7+
indent_size = 2
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.ts]
12+
quote_type = single
13+
14+
[*.md]
15+
max_line_length = off
16+
trim_trailing_whitespace = false

‎shopapp-angular/.gitignore

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# See http://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# Compiled output
4+
/dist
5+
/tmp
6+
/out-tsc
7+
/bazel-out
8+
9+
# Node
10+
/node_modules
11+
npm-debug.log
12+
yarn-error.log
13+
14+
# IDEs and editors
15+
.idea/
16+
.project
17+
.classpath
18+
.c9/
19+
*.launch
20+
.settings/
21+
*.sublime-workspace
22+
23+
# Visual Studio Code
24+
.vscode/*
25+
!.vscode/settings.json
26+
!.vscode/tasks.json
27+
!.vscode/launch.json
28+
!.vscode/extensions.json
29+
.history/*
30+
31+
# Miscellaneous
32+
/.angular/cache
33+
.sass-cache/
34+
/connect.lock
35+
/coverage
36+
/libpeerconnection.log
37+
testem.log
38+
/typings
39+
40+
# System files
41+
.DS_Store
42+
Thumbs.db

‎shopapp-angular/.vscode/extensions.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=827846
3+
"recommendations": ["angular.ng-template"]
4+
}

‎shopapp-angular/.vscode/launch.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
3+
"version": "0.2.0",
4+
"configurations": [
5+
{
6+
"name": "ng serve",
7+
"type": "chrome",
8+
"request": "launch",
9+
"preLaunchTask": "npm: start",
10+
"url": "http://localhost:4200/"
11+
},
12+
{
13+
"name": "ng test",
14+
"type": "chrome",
15+
"request": "launch",
16+
"preLaunchTask": "npm: test",
17+
"url": "http://localhost:9876/debug.html"
18+
}
19+
]
20+
}

‎shopapp-angular/.vscode/tasks.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
// For more information, visit: https://go.microsoft.com/fwlink/?LinkId=733558
3+
"version": "2.0.0",
4+
"tasks": [
5+
{
6+
"type": "npm",
7+
"script": "start",
8+
"isBackground": true,
9+
"problemMatcher": {
10+
"owner": "typescript",
11+
"pattern": "$tsc",
12+
"background": {
13+
"activeOnStart": true,
14+
"beginsPattern": {
15+
"regexp": "(.*?)"
16+
},
17+
"endsPattern": {
18+
"regexp": "bundle generation complete"
19+
}
20+
}
21+
}
22+
},
23+
{
24+
"type": "npm",
25+
"script": "test",
26+
"isBackground": true,
27+
"problemMatcher": {
28+
"owner": "typescript",
29+
"pattern": "$tsc",
30+
"background": {
31+
"activeOnStart": true,
32+
"beginsPattern": {
33+
"regexp": "(.*?)"
34+
},
35+
"endsPattern": {
36+
"regexp": "bundle generation complete"
37+
}
38+
}
39+
}
40+
}
41+
]
42+
}

‎shopapp-angular/Note.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎shopapp-angular/README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# ShopappAngular
2+
3+
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 16.1.3.
4+
5+
## Development server
6+
7+
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The application will automatically reload if you change any of the source files.
8+
9+
## Code scaffolding
10+
11+
Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.
12+
13+
## Build
14+
15+
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory.
16+
17+
## Running unit tests
18+
19+
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
20+
21+
## Running end-to-end tests
22+
23+
Run `ng e2e` to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.
24+
25+
## Further help
26+
27+
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.

‎shopapp-angular/angular.json

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
{
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3+
"version": 1,
4+
"newProjectRoot": "projects",
5+
"projects": {
6+
"shopapp-angular": {
7+
"projectType": "application",
8+
"schematics": {
9+
"@schematics/angular:component": {
10+
"style": "scss"
11+
}
12+
},
13+
"root": "",
14+
"sourceRoot": "src",
15+
"prefix": "app",
16+
"architect": {
17+
"build": {
18+
"builder": "@angular-devkit/build-angular:browser",
19+
"options": {
20+
"outputPath": "dist/shopapp-angular",
21+
"index": "src/index.html",
22+
"main": "src/main.ts",
23+
"polyfills": [
24+
"zone.js"
25+
],
26+
"tsConfig": "tsconfig.app.json",
27+
"inlineStyleLanguage": "scss",
28+
"assets": [
29+
"src/favicon.ico",
30+
"src/assets"
31+
],
32+
"styles": [
33+
"node_modules/bootstrap/dist/css/bootstrap.min.css",
34+
"node_modules/@fortawesome/fontawesome-free/css/all.min.css",
35+
"src/styles.scss"
36+
],
37+
"scripts": []
38+
},
39+
"configurations": {
40+
"production": {
41+
"budgets": [
42+
{
43+
"type": "initial",
44+
"maximumWarning": "500kb",
45+
"maximumError": "1mb"
46+
},
47+
{
48+
"type": "anyComponentStyle",
49+
"maximumWarning": "2kb",
50+
"maximumError": "4kb"
51+
}
52+
],
53+
"outputHashing": "all"
54+
},
55+
"development": {
56+
"buildOptimizer": false,
57+
"optimization": false,
58+
"vendorChunk": true,
59+
"extractLicenses": false,
60+
"sourceMap": true,
61+
"namedChunks": true
62+
}
63+
},
64+
"defaultConfiguration": "production"
65+
},
66+
"serve": {
67+
"builder": "@angular-devkit/build-angular:dev-server",
68+
"configurations": {
69+
"production": {
70+
"browserTarget": "shopapp-angular:build:production"
71+
},
72+
"development": {
73+
"browserTarget": "shopapp-angular:build:development"
74+
}
75+
},
76+
"defaultConfiguration": "development"
77+
},
78+
"extract-i18n": {
79+
"builder": "@angular-devkit/build-angular:extract-i18n",
80+
"options": {
81+
"browserTarget": "shopapp-angular:build"
82+
}
83+
},
84+
"test": {
85+
"builder": "@angular-devkit/build-angular:karma",
86+
"options": {
87+
"polyfills": [
88+
"zone.js",
89+
"zone.js/testing"
90+
],
91+
"tsConfig": "tsconfig.spec.json",
92+
"inlineStyleLanguage": "scss",
93+
"assets": [
94+
"src/favicon.ico",
95+
"src/assets"
96+
],
97+
"styles": [
98+
"src/styles.scss",
99+
"node_modules/bootstrap/dist/css/bootstrap.min.css"
100+
],
101+
"scripts": []
102+
}
103+
}
104+
}
105+
}
106+
},
107+
"cli": {
108+
"analytics": "12eead7c-ea1a-4218-9ebd-51ba7ffceaee"
109+
}
110+
}

‎shopapp-angular/package.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"name": "shopapp-angular",
3+
"version": "0.0.0",
4+
"scripts": {
5+
"ng": "ng",
6+
"start": "ng serve",
7+
"build": "ng build",
8+
"watch": "ng build --watch --configuration development",
9+
"test": "ng test"
10+
},
11+
"private": true,
12+
"dependencies": {
13+
"@angular/animations": "^16.1.0",
14+
"@angular/common": "^16.1.0",
15+
"@angular/compiler": "^16.1.0",
16+
"@angular/core": "^16.1.0",
17+
"@angular/forms": "^16.1.0",
18+
"@angular/platform-browser": "^16.1.0",
19+
"@angular/platform-browser-dynamic": "^16.1.0",
20+
"@angular/router": "^16.1.0",
21+
"@fortawesome/fontawesome-free": "^6.4.0",
22+
"bootstrap": "^5.3.0",
23+
"rxjs": "~7.8.0",
24+
"tslib": "^2.3.0",
25+
"zone.js": "~0.13.0"
26+
},
27+
"devDependencies": {
28+
"@angular-devkit/build-angular": "^16.1.3",
29+
"@angular/cli": "~16.1.3",
30+
"@angular/compiler-cli": "^16.1.0",
31+
"@types/jasmine": "~4.3.0",
32+
"jasmine-core": "~4.6.0",
33+
"karma": "~6.4.0",
34+
"karma-chrome-launcher": "~3.2.0",
35+
"karma-coverage": "~2.2.0",
36+
"karma-jasmine": "~5.1.0",
37+
"karma-jasmine-html-reporter": "~2.1.0",
38+
"typescript": "~5.1.3"
39+
}
40+
}

‎shopapp-angular/src/app/app.module.ts

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
import { NgModule } from '@angular/core';
2+
import { BrowserModule } from '@angular/platform-browser';
3+
import { HomeComponent } from './home/home.component';
4+
import { HeaderComponent } from './header/header.component';
5+
import { FooterComponent } from './footer/footer.component';
6+
import { DetailProductComponent } from './detail-product/detail-product.component';
7+
import { OrderComponent } from './order/order.component';
8+
import { OrderConfirmComponent } from './order-confirm/order-confirm.component';
9+
import { LoginComponent } from './login/login.component';
10+
import { RegisterComponent } from './register/register.component';
11+
12+
@NgModule({
13+
declarations: [
14+
HomeComponent,
15+
HeaderComponent,
16+
FooterComponent,
17+
DetailProductComponent,
18+
OrderComponent,
19+
OrderConfirmComponent,
20+
LoginComponent,
21+
RegisterComponent,
22+
],
23+
imports: [BrowserModule],
24+
providers: [],
25+
bootstrap: [
26+
HomeComponent,
27+
DetailProductComponent,
28+
OrderComponent,
29+
OrderConfirmComponent,
30+
LoginComponent,
31+
RegisterComponent,
32+
],
33+
})
34+
export class AppModule {}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /