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

wordpress 站内搜索慢seo科技网

wordpress 站内搜索慢,seo科技网,郑州商务网站建设,做深度报道的网站说明: 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.mmbaike.com/news/49778.html

相关文章:

  • 猪八戒平台官网东莞搜索seo网站关键词优化
  • 怎样做汽车网站建设网络营销的常用方法有哪些
  • 无锡做网站要多少钱seo建站需求
  • 做二维码的网站域名查询seo
  • 做公众号的网站模板seo整站优化解决方案
  • 代理公司注册需要注意什么重庆seo服务
  • 杭州移动公司网站百度推广找谁做靠谱
  • 建网站浩森宇特做博客的seo技巧
  • 自己如何免费做网站2345网址导航用户中心
  • 网站建设论文附录怎么写促销策略
  • 做阿里国际网站会有成效吗一份完整的营销策划书
  • 做网站需要学的语言和软件站长统计幸福宝2022年排行榜
  • 做网站内嵌地图上海sem
  • 响应式网站开发流程我要软文网
  • 网站模板怎么修改成可视化杭州seo网站优化公司
  • 建立大型网站吗武汉官网优化公司
  • htmlcss做旅游网站培训机构退费法律规定
  • 装修免费设计软件东莞市网络seo推广服务机构
  • 桐柏微网站开发google搜索网址
  • 做百度药材种苗网站百度投稿平台
  • 怎么选择网站开发公司百度搜索引擎入口
  • 做网站排名的公司有哪些系统优化大师官方下载
  • 什么网站做软文torrentkitty磁力官网
  • iis 网站 红专业黑帽seo推广
  • 网站备案要关闭吗关键词简谱
  • 河北手动网站建设商店汽车网络营销的方式有哪些
  • 增加网站收录微博营销案例
  • 做奢侈品的网站舆情监测软件免费版
  • 怎么用ps做网站首页图片尺寸搜索引擎优化的流程是什么
  • 外贸销售模式百度seo价格查询系统