随笔 - 240  文章 - 0  评论 - 8  阅读 - 13万
02 2022 档案
angular 父子组件传值及通讯
摘要:父组件,传递属性到子组件 在子组件应用: @Input() title: any 父组件,传值 <app-header [title]="'你好,我是来自form页面的title'"></app-header> 父组件,传递方法到子组件 父组件,传方法:show <app-header [title 阅读全文
posted @ 2022-02-20 21:42 biind 阅读(75) 评论(0) 推荐(0) 编辑
angular 服务 基本用法
摘要:创建个服务 ng g service services/search 全局引入并配置服务 import {SearchService} from './services/search.service' providers: [SearchService], 在组件中,使用服务 import {Sea 阅读全文
posted @ 2022-02-20 20:58 biind 阅读(28) 评论(0) 推荐(0) 编辑
angular form表单
摘要:1.引入表单 2.简单使用 参考地址:https://www.bilibili.com/video/BV1Wt411V7RC?p=6&spm_id_from=pageDriver 1.引入表单 2.简单使用 import {NgModule} from '@angular/core'; import 阅读全文
posted @ 2022-02-20 20:39 biind 阅读(246) 评论(0) 推荐(0) 编辑
angular 常用指令
摘要:1.表单 2.其它 参考:https://www.bilibili.com/video/BV1Wt411V7RC?p=10 1.表单 添加表单 import {FormsModule} from '@angular/forms'双向绑定,input例子:<input [(ngModel)]="tit 阅读全文
posted @ 2022-02-20 17:59 biind 阅读(68) 评论(0) 推荐(0) 编辑
angular 入门
摘要:1.安装node.js + angular cli 2.新建个项目@angular/cli 3.基础命令 参考:https://www.bilibili.com/video/BV1Wt411V7RC?p=10 1.安装node.js + angular cli node下载地址:https://no 阅读全文
posted @ 2022-02-20 13:14 biind 阅读(157) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示