Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
sonicwater
ng-demo
提交
ffa3bfb9
ng-demo
项目概览
sonicwater
/
ng-demo
通知
47
Star
0
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
ng-demo
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
ffa3bfb9
编写于
5月 12, 2021
作者:
sonicwater
🎮
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix:merge
上级
fc9daca2
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
16 addition
and
97 deletion
+16
-97
README.md
README.md
+0
-3
src/app/app-routing.module.ts
src/app/app-routing.module.ts
+2
-2
src/app/components/home/home.component.html
src/app/components/home/home.component.html
+1
-1
src/app/components/home/home.component.ts
src/app/components/home/home.component.ts
+4
-4
src/app/components/login/login.component.html
src/app/components/login/login.component.html
+9
-87
未找到文件。
README.md
浏览文件 @
ffa3bfb9
<<<<<<< HEAD
# NgDemo
This project was generated with
[
Angular CLI
](
https://github.com/angular/angular-cli
)
version 11.2.12.
...
...
@@ -26,6 +25,4 @@ Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protrac
## Further help
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.
=======
>>>>>>> b03a763330ae547c24ec4e6666e76ae37de3c84d
src/app/app-routing.module.ts
浏览文件 @
ffa3bfb9
...
...
@@ -2,12 +2,12 @@ import { NgModule } from '@angular/core';
import
{
RouterModule
,
Routes
}
from
'
@angular/router
'
;
import
{
LoginComponent
}
from
'
./components/login/login.component
'
;
import
{
ProductsComponent
}
from
'
./components/products/products
.component
'
;
import
{
HomeComponent
}
from
'
./components/home/home
.component
'
;
const
routes
:
Routes
=
[
{
path
:
'
login
'
,
component
:
LoginComponent
},
{
path
:
''
,
redirectTo
:
'
/login
'
,
pathMatch
:
'
full
'
},
{
path
:
'
products
'
,
component
:
Products
Component
},
{
path
:
'
home
'
,
component
:
Home
Component
},
];
@
NgModule
({
...
...
src/app/components/home/home.component.html
浏览文件 @
ffa3bfb9
<div
class=
"container"
>
products
home
</div>
src/app/components/home/home.component.ts
浏览文件 @
ffa3bfb9
...
...
@@ -4,11 +4,11 @@ import { Component } from '@angular/core';
@
Component
({
templateUrl
:
'
./
products
.component.html
'
,
styleUrls
:
[
'
./
products
.component.scss
'
]
templateUrl
:
'
./
home
.component.html
'
,
styleUrls
:
[
'
./
home
.component.scss
'
]
})
export
class
Products
Component
{
export
class
Home
Component
{
public
title
=
{
msg
:
'
products
-component
'
msg
:
'
home
-component
'
};
}
src/app/components/login/login.component.html
浏览文件 @
ffa3bfb9
...
...
@@ -4,55 +4,31 @@
<div
id=
"loginui"
class=
"login-layout"
>
<h3
class=
"login-title"
>
登录中心
</h3>
<form
nz-form
>
<form
n
ame=
"form"
n
z-form
>
<nz-form-item>
<nz-form-label
[nzSpan]=
"4"
>
用户名
</nz-form-label>
<nz-form-control
nzHasFeedback
[nzSpan]=
"20"
>
<input
nz-input
name=
"
required
"
required
/>
<input
nz-input
name=
"
username
"
required
/>
</nz-form-control>
</nz-form-item>
<nz-form-item>
<nz-form-label
[nzSpan]=
"4"
>
密
码
</nz-form-label>
<nz-form-control
nzHasFeedback
[nzSpan]=
"20"
>
<input
nz-input
name=
"
maxlength
"
required
/>
<input
nz-input
name=
"
password
"
required
/>
</nz-form-control>
</nz-form-item>
<nz-form-item>
<nz-form-control
[nzSpan]=
"20"
[nzOffset]=
"4"
>
<button
nz-button
nzType=
"primary"
>
登录
</button>
<button
nz-button
nzType=
"primary"
ng-disabled=
"form.$invalid"
(click)=
"onSave('this')"
>
登录
</button>
</nz-form-control>
</nz-form-item>
</form>
<!-- <form name="form" class="row" novalidate>
<div class="col-md-12">
<label for="validationCustomUsername" class="form-label">Username</label>
<div class="input-group has-validation">
<input
type="text"
class="form-control"
id="validationCustomUsername"
ng-model="entity.username"
required
/>
<div class="invalid-feedback">
请输入用户名
</div>
</div>
</div>
<div class="col-12">
<button
class="btn btn-primary"
type="button"
ng-disabled="form.$invalid"
(click)="onSave('this')"
>登录</button>
</div>
</form> -->
<!-- <ul>
<li *ngFor="let product of products; index as productId">
<a [title]="product.name" (click)="jump(product.id)">
...
...
@@ -66,57 +42,3 @@
</div>
</div>
<!-- <div class="toolbar" role="banner">
<form (submit)="onSubmit(this)">
<div class="form-row">
<div class="form-group col-md-6">
<label for="inputEmail4">Email</label>
<input type="email" class="form-control" id="inputEmail4">
</div>
<div class="form-group col-md-6">
<label for="inputPassword4">Password</label>
<input type="password" class="form-control" id="inputPassword4">
</div>
</div>
<div class="form-group">
<label for="inputAddress">Address</label>
<input type="text" class="form-control" id="inputAddress" placeholder="1234 Main St">
</div>
<div class="form-group">
<label for="inputAddress2">Address 2</label>
<input type="text" class="form-control" id="inputAddress2" placeholder="Apartment, studio, or floor">
</div>
<div class="form-row">
<div class="form-group col-md-6">
<label for="inputCity">City</label>
<input type="text" class="form-control" id="inputCity">
</div>
<div class="form-group col-md-4">
<label for="inputState">State</label>
<select id="inputState" class="form-control">
<option selected>Choose...</option>
<option>...</option>
</select>
</div>
<div class="form-group col-md-2">
<label for="inputZip">Zip</label>
<input type="text" class="form-control" id="inputZip">
</div>
</div>
<div class="form-group">
<div class="form-check">
<input class="form-check-input" type="checkbox" id="gridCheck">
<label class="form-check-label" for="gridCheck">
Check me out
</label>
</div>
</div>
<button type="submit" class="btn btn-primary">Sign in</button>
</form>
</div>
<div class="content" role="main">
{{JSON.stringify(title)}}--
<button (click)="onSave('save1')" type="button" class="btn btn-primary">test log</button>
</div> -->
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录