Ever had the need for multiple "app themes", or even to completely dynamically load CSS based on which customer logs into your application? You could
转载 2019-08-22 16:18:00
185阅读
2评论
Html: <input type="range" value="0" [style.--thumb-rotate]="720 * $any(input.value)/100 + 'deg'" #input (input)="0"> CSS: input[type="range"]::-webkit
转载 2020-02-17 17:30:00
173阅读
2评论
Angular动态切换css元素样式第一种方式,切换不同的cssstep1:D:\vue\untitled3\src\app\app.component.csscss.showtrue{backgroundcolor:red;color:white;}.showfalse{color:white;backgroundcolor:blue;}step2:D:\vue\untitled3\src\ap
原创 2022-03-28 12:28:42
1046阅读
Angular动态切换css元素样式第一种方式,切换不同的cssstep1: D:\vue\untitled3\src\app\app.component.css.show-true { background-color: red; color: white;}.show-false { color: white; background-color: blue;}step2: D:\vue\untitled3\src\app\app.component.html&lt
原创 2022-04-19 11:55:54
950阅读
  一、模仿Reddita) 运行ng new –ng4angular-reddit创建应用,从随书代码中复制样式文件,新建组件app-root,代码为:界面可以看到了:b) 对于界面输入的数据,获取的方式有点特别,使用了#newlink这样的语法,newlink是一个对象,现在代表就是所在的input这个DOM元素。将对象作为参数传递给addArticle
transition.component.html<div> 内容区域 <button (click)="showAside()">弹出侧边栏</button> <button (click)="hiddenAside()">隐藏侧边栏</button></div><aside id="aside"> 这是一个侧边栏</aside>transition.component.scss
css
原创 2021-07-05 11:34:48
648阅读
首先在项目根目录下打开angular.json文件但是注意,如果引用 "src/app/app.component.scs
效果:
转载 2021-08-13 09:39:00
226阅读
.ng-valid[required].ng-dirty:not(form),.ng-valid.required.ng-dirty:not(form) {    border-left: 5px solid #42A948;}.ng-valid[required].ng-pristine:not(form),.ng-
原创 2017-10-13 12:40:30
1115阅读
Create an app with routing config: If you want to generate a new module with routing , you can also do: Define env variable: You can create a custom e
转载 2017-03-23 21:48:00
252阅读
2评论
实现了一个小demo,效果截图:上代码:html页面:<div class="centen"> 内容 <buttoanck!&l...
原创 2022-07-27 10:11:56
127阅读
1. Installl latest @angular/cli: The version I used is:6.0.0-rc.10 2. Create a new application: 3. Install material and cdk packages: Here need to add
转载 2018-05-03 19:43:00
288阅读
2评论
写在最前面 首先是我的目录结构 你要新建的是Dockerfile和nginx-angular.confDockerfile在 Angular 项目的根目录下面创建一个 Dockerfile 文件,内容如下#设置一个基本的镜像,FROM 后面是镜像的名字,这个镜像是 Docker 官方提供的,这个镜像里面包含了 Node.js,可以在node后跟冒号 申明东镜像版本。as builder 是给它起了
转载 2024-08-01 08:23:50
93阅读
相关链接angular视频课:https://www.bilibili.com/video/BV1iJ411F7Bf?p=3angular文档:https://angular.cn/guide/setup-localng-zorro-antd文档:https://ng.ant.design/docs/getting-started/zh 主要内容1. 安装Node.js以使用npm命令,
转载 2023-07-04 14:19:38
151阅读
Compile time configuration options allow you to provide different kind of settings based on the environment you're building the Angular app for. You m
转载 2018-01-23 19:19:00
215阅读
2评论
Install: Create a project: Run the project: Change the port: Create a component: The component will be created in src/app/contact-list-component. Gene
转载 2016-07-20 02:19:00
247阅读
2评论
我有一个Angular列表,我期望在元素li被点击时,显示的外观和其他元素不一样。
原创 2022-04-14 10:15:01
53阅读
我有一个Angular列表,我期望在元素li被点击时,显示的外观和其他元素不一样。可以通过li被点击时,给该元素分配一个CSS样式的方式来实现。 定义一个selected CSS类: list当前元素等于selectedHero的值时,施加.selected类: 这参照了官网上介绍的语法: The Angular class binding makes it easy to add an
原创 2021-07-12 17:53:30
283阅读
1.设置代码结构 index.html放在外围 templates 包含 tabs.html 及 所有视图 2.为了便于修改 api 接口,在config.js 中 使用常量(EVN),标记所有接口 3.app.js 设置平台 $ionicPlatform 定义抬头 $httpProvider.de
转载 2017-01-03 21:47:00
119阅读
2评论
Angular
  • 1
  • 2
  • 3
  • 4
  • 5