当前位置: 首页 > news >正文

关于网站建设的建议报告易语言开发网站

关于网站建设的建议报告,易语言开发网站,产品设计和视觉传达设计哪个好,硬件开发是干嘛的说明: angular 在一个控件类里面,引入另外一个控件类,这样做的好处,就是代码分离,当你一个页面存在多少类似于独立的界面时,可以使用这种方式,分离代码 更好维护程序 效果图: step…

说明:
angular 在一个控件类里面,引入另外一个控件类,这样做的好处,就是代码分离,当你一个页面存在多少类似于独立的界面时,可以使用这种方式,分离代码 更好维护程序
效果图:
在这里插入图片描述

step1:E:\projectcar\ajcar\ajnine\untitled4\src\app\app.routes.ts

import { Routes } from '@angular/router';import {ContentExampleComponent} from './content/content-example/content-example.component';export const routes: Routes = [{path:'content',component:ContentExampleComponent}
];

step2: E:\projectcar\ajcar\ajnine\untitled4\src\app\content\content-example\content-example.component.html

<div style="background: red"><div class="w-8/12 bg-blue-100 mx-auto mt-5"><a href="" routerLink="/content" class="ml-4 underline text-blue-500">Go to Component Concept</a><div><app-content-second><p>This content is coming from the Parent</p><ng-container card-title>This is content from <b>custom selector</b></ng-container><div ngProjectAs="card-name"><b>Content from ngProjectAs</b></div></app-content-second></div></div>
</div>

step3: E:\projectcar\ajcar\ajnine\untitled4\src\app\content\content-example\content-example.component.ts

import { Component } from '@angular/core';import { ContentSecondComponent } from "../content-second/content-second.component";
import {RouterLink} from '@angular/router';@Component({selector: 'app-content-example',standalone: true,imports: [ContentSecondComponent, RouterLink],templateUrl: './content-example.component.html',styleUrl: './content-example.component.css'
})
export class ContentExampleComponent {}

step4: E:\projectcar\ajcar\ajnine\untitled4\src\app\content\content-second\content-second.component.html

<div style="background: coral"><h1>This is the child content component</h1><p>Projected content will be shown below</p><hr class="border-t border-gray-300 mb-8" /><ng-content></ng-content><ng-content select="[card-title]"></ng-content><!-- for ng project as--><ng-content select="card-name"></ng-content><div><p>HostListener example. {{ label }}</p></div>
</div>

step5: E:\projectcar\ajcar\ajnine\untitled4\src\app\content\content-second\content-second.component.ts

import {Component, HostBinding, HostListener} from '@angular/core';@Component({selector: 'app-content-second',standalone: true,imports: [],templateUrl: './content-second.component.html',styleUrl: './content-second.component.css'
})
export class ContentSecondComponent {@HostBinding('attr.aria-valuenow')value: number = 0;public label?: string;@HostListener('click', ['$event'])updateValue(event: MouseEvent) {this.label = 'Child component has been clicked';}}

end

http://www.yayakq.cn/news/66741/

相关文章:

  • 深圳福永网站建设公司中国建设集团门户网站
  • 做喷绘的图在哪个网站找网页版微信登录入口官网
  • wordpress手机站点学生做网站赚钱
  • 北京公司建站模板网站建设申报书
  • 咨询网站建设团队建设游戏网站
  • 外国人做僾视频网站机械网站优化
  • 网站的设计与制作阅读第2版销帮帮crm怎么样
  • 专题网站建设策划方案如何开发电商网站
  • 网站怎么做404页面跳转沧州网站建设制作设计优化
  • 中国工程建设交易信息网站开源的网站开发软件
  • 公司网站建设方案所需素材陕西省城乡住房建设厅官网
  • 石家庄做网站科技公司wordpress用户角色管理系统
  • 芙蓉区营销型网站建设定制衡水网站建设服务商
  • hmm船公司网站网站关键词几个合适
  • 网站被挂黑链了电商学校学费多少钱
  • 网站优化推广公司做博客网站用什么模板
  • 正规招聘网站有哪些搜索推广和信息流推广的区别
  • 张北北京网站建设wordpress内容汉化
  • 网站制作费用预算表网站开发学什么专业
  • 音乐网站建设net大规模网站开发视频
  • 镇江网站建设案例户网站建设的不全.
  • 网站建设与制作过程施工企业组织机构框架图
  • 影视公司网站模板WordPress数据多了会卡吗
  • 手机企业网站模板旅游网站国内外研究现状
  • 自助建站cn网页设计与网站建设指标点
  • 免费做app网站有哪些企业域名申请流程
  • 知道网站是wp程序做的如何仿站wordpress支付宝流程
  • 淄川区住房和城乡建设局网站关键词seo优化公司
  • 网站建设和原则想学做网站需要学什么
  • 自己做的网站能在线支付好看网站推荐货源