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评论
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评论
相关链接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阅读
写在最前面 首先是我的目录结构 你要新建的是Dockerfile和nginx-angular.confDockerfile在 Angular 项目的根目录下面创建一个 Dockerfile 文件,内容如下#设置一个基本的镜像,FROM 后面是镜像的名字,这个镜像是 Docker 官方提供的,这个镜像里面包含了 Node.js,可以在node后跟冒号 申明东镜像版本。as builder 是给它起了
转载 2024-08-01 08:23:50
93阅读
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评论
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评论
diff --git a/CanDoo.Host/CanDoo.MvcHost/Areas/ShopA/Views/Home/Index.cshtml b/CanDoo.Host/CanDoo.MvcHost/Areas/ShopA/Views/Home/Index.cshtml index dbe87f1..aa4d1cc 1004 --- a/CanDoo.Host/CanDoo.Mvc...
转载 2017-03-13 08:36:00
106阅读
2评论
http://www.iteye.com/news/28651-AngularJS-Google-resource <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset
原创 2023-10-10 16:23:00
117阅读
Being able to intercept HTTP requests is crucial in a real world application. Whether it is for error handling and logging or for injecting authentica
转载 2017-08-03 03:31:00
148阅读
2评论
原创 2022-07-16 01:34:51
157阅读
最近正在使用Angular开发Ai-Admin快速开发平台,UI框架选择了Ant Design的ng-zorro,登录认证我们使用token。完整代码:https://gitee.com/chou-xf/ai-adminSession认证 由于http协议是无状态的,所以客户端每次访问都是新的请求。这样每次请求都需要验证身份,传统方式是用session+cookie来记录/传输用户信息。由于ses
Angular框架结构概述Angular是一套用于构建用户界面的 JavaScript 框架。由 Google 开发和维护,主要被用来开发单页面应用程序。特性MVVM(数据驱动视图思想)组件化模块化指令服务依赖注入TypeScript。。。Angular 项目目录结构项目目录结构目录结构 e2e 端到端测试 protractor.conf.js 端到端测试配置文件 node_modules np
转载 2023-09-03 13:23:43
85阅读
Angular 是一个用 HTML 和 JavaScript 或者一个可以编译成 JavaScript 的语言(例如 Dart 或者 TypeScript ),来构建客户端应用的框架。该框架包括一系列库,有些是核心库,有些是可选库。我们是这样写 Angular 应用的:用 Angular 扩展语法编写 HTML 模板, 用组件类管理这些模板,用服务添加应用逻辑, 用模块打包发布组件与服务。然后,我
AngularJS被Google收购了,并且应用到Google的很多产品中Google有一个产品,写了17000多行代码,使用AngularJS改版之后,代码1500行代码应用场景:前后端相分离的应用   HTML  JS(PHP)CRUD类型的应用(Create、Read、Update、Delete)SPA(Single Page App:单页面应用)Angular
转载 2023-08-31 19:04:01
160阅读
安装指定版本的 angular-cli 并创建应用,1.6.4 是 angular 5 的脚手架 cnpm install -g @angular/cli@1.6.2 如果报错,比如说缺少 module '@angular-devkit/core'。不能直接安装 cnpm i -g @angular
转载 2021-02-23 13:44:00
1320阅读
2评论
https://angular.cn/start/start-datahttps://github.com/moocstudent/angular-demoAngular 安骨拉 让我想起了一个安哥拉。实际这也是个非洲的地名。作者:ukyo--阿涅丝
原创 2023-05-17 12:48:02
413阅读
Link: Blog Single transclude: Multi-translcude:
转载 2016-03-23 03:07:00
197阅读
2评论
1.在一个新建的angular的项目中插入element npm i --save element-angular 2.在项目中的styles.css中插入文件,下列文件放进去即可 @import "~element-angular/theme/index.css" 3.在app.module.ts ...
转载 2021-08-22 21:32:00
712阅读
2评论
angular
原创 2023-02-12 01:45:43
92阅读
angular中的$q是用来处理异步的(主要当然是http交互啦~).$q采用的是promise式的异步编程.什么是promise异步编程呢? 异步编程最重要的核心就是回调,因为有回调函数,所以才构成了异步编程,而回调有三个关键部分:一是什么时候执行回调,二是执行什么回调,三是回调执行的时候传入什么参数.就以最常见的jquery Ajax举例,发送一个请求后:什么时候执行回调: 请求成功
  • 1
  • 2
  • 3
  • 4
  • 5