Angular核心特性 大漠穷秋 2017-05-13
Component,Module,Route 第三块内容:Angular架构特色 依赖注入、数据绑定 第四块内容:UI库 Angular-Material,Prime-NG,ng2-bootstrap,ionic 第五块内容:参考资源推荐 第一块:集成开发环境@angular/cli 2009年,前端Big Bang! Tool Chains based @angular/cli >ng --version >ng help >ng new my-project1 >ng serve @angular/cli >ng generate cl:class c:component d:directive e:enum m:module p:pipe s:service 命令有简化版本:ng g c User node-sass这个node模块被墙掉了,原因不明 所以强烈推荐采用cnpm安装 @angular/cli ng serve --prod 注意:最新版的CLI加上--prod参数就自动AOT了,官网上的那篇文档过时了! @angular/cli ng test @angular/cli 第二块:Angular中的3大核心概念 一张图覆盖Angular所有概念0 码力 | 52 页 | 2.50 MB | 1 年前3[试读] Angular 5 高级编程
旅的必备基础。 2.2.1 创建项目 要创建项目,请选择一个方便的位置,并使用命令提示符来运行以下命令,以创建一 个名为 todo 的新项目: ng new todo ng 命令由 angular-cli 包提供,ng new 启动一个新项目。在安装过程中将创建一个名为 todo 的文件夹,其中包含启动 Angular 开发所需的所有配置文件,启动开发的一些占位符 文件以及开发、运行和部署 0.0", "license": "MIT", "scripts": { "ng": "ng", "start": "ng serve", "build": "ng build", "test": "ng test", "lint": "ng lint", "e2e": "ng e2e" }, "private": true, "dependencies": 切是否正常工作的时候了。在 todo 文件夹下面运行以下命令: ng serve --port 3000 --open 这条命令启动 HTTP 开发服务器,angular-cli 安装该软件并进行配置以配合其他 Angular 开发工具。初次启动过程需要一段时间来准备项目,并将生成与下面类似的输出: ** NG Live Development Server is listening0 码力 | 42 页 | 6.14 MB | 1 年前3Typescript, Angular, 和移动端的跨平台开发
Default: Register the module only when needed. ● Webpack implementation creates bundle splitting and serve file url. import { Routes } from '@angular/router'; export const ROUTES: Routes = [ { path: '' application throughout: ● ng new○ Scaffold best practice applications. ● ng generate ○ Generate components, services, pipes, routes, etc. ● ng serve --open ○ hot reload support ● ng build --pod ○ AOT class="list-group"> <ng-template let-item="item"> ng-template> 0 码力 | 60 页 | 1.05 MB | 1 年前3Weblate 4.2 用户文档
Flag to enable angularjs-format 参见 AngularJS: API: $interpolate [https://docs.angularjs.org/api/ng/service/$interpolate] C 格式 C format string does not match source Simple format string There are use the repository directly. For anonymous access, you might want to run a Git server and let it serve the repository to the outside world. Alternatively, you can use Git exporter inside Weblate to automate slug results (array) – array of translation objects; see GET /api/translations/(string:project)/(stri ng:component)/(string:language)/ POST /api/components/(string: project)/(string: component)/translations/0 码力 | 648 页 | 9.34 MB | 1 年前3Weblate 4.2.1 用户文档
Flag to enable angularjs-format 参见 AngularJS: API: $interpolate [https://docs.angularjs.org/api/ng/service/$interpolate] C 格式 C format string does not match source Simple format string There are use the repository directly. For anonymous access, you might want to run a Git server and let it serve the repository to the outside world. Alternatively, you can use Git exporter inside Weblate to automate slug results (array) – array of translation objects; see GET /api/translations/(string:project)/(stri ng:component)/(string:language)/ POST /api/components/(string: project)/(string: component)/translations/0 码力 | 650 页 | 9.34 MB | 1 年前3Weblate 4.2.2 用户文档
Flag to enable angularjs-format 参见 AngularJS: API: $interpolate [https://docs.angularjs.org/api/ng/service/$interpolate] C 格式 C format string does not match source Simple format string There are use the repository directly. For anonymous access, you might want to run a Git server and let it serve the repository to the outside world. Alternatively, you can use Git exporter inside Weblate to automate slug results (array) – array of translation objects; see GET /api/translations/(string:project)/(stri ng:component)/(string:language)/ POST /api/components/(string: project)/(string: component)/translations/0 码力 | 650 页 | 9.34 MB | 1 年前3Weblate 4.2.1 用户文档
use the repository directly. For anonymous access, you might want to run a Git server and let it serve the repository to the outside world. Alternatively, you can use Git exporter inside Weblate to automate errors. 参见: ADMINS ALLOWED_HOSTS You need to set this to list the hosts your site is supposed to serve. For example: ALLOWED_HOSTS = ['demo.weblate.org'] Alternatively you can include wildcard: ALLOWED_HOSTS hosts setup Django requires ALLOWED_HOSTS to hold a list of domain names your site is allowed to serve, leaving it empty will block any requests. In case this is not configured to match your HTTP server0 码力 | 411 页 | 4.60 MB | 1 年前3Weblate 4.2.2 用户文档
use the repository directly. For anonymous access, you might want to run a Git server and let it serve the repository to the outside world. Alternatively, you can use Git exporter inside Weblate to automate errors. 参见: ADMINS ALLOWED_HOSTS You need to set this to list the hosts your site is supposed to serve. For example: ALLOWED_HOSTS = ['demo.weblate.org'] Alternatively you can include wildcard: ALLOWED_HOSTS hosts setup Django requires ALLOWED_HOSTS to hold a list of domain names your site is allowed to serve, leaving it empty will block any requests. In case this is not configured to match your HTTP server0 码力 | 411 页 | 4.60 MB | 1 年前3Weblate 4.2 用户文档
use the repository directly. For anonymous access, you might want to run a Git server and let it serve the repository to the outside world. Alternatively, you can use Git exporter inside Weblate to automate errors. 参见: ADMINS ALLOWED_HOSTS You need to set this to list the hosts your site is supposed to serve. For example: ALLOWED_HOSTS = ['demo.weblate.org'] Alternatively you can include wildcard: ALLOWED_HOSTS hosts setup Django requires ALLOWED_HOSTS to hold a list of domain names your site is allowed to serve, leaving it empty will block any requests. In case this is not configured to match your HTTP server0 码力 | 410 页 | 4.56 MB | 1 年前3Weblate 4.3 用户文档
Flag to enable angularjs-format 参见 AngularJS: API: $interpolate [https://docs.angularjs.org/api/ng/service/$interpolate] C 格式 C format string does not match source Simple format string There are use the repository directly. For anonymous access, you might want to run a Git server and let it serve the repository to the outside world. Alternatively, you can use Git exporter inside Weblate to automate 标识串 results (array) – array of translation objects; see GET /api/translations/(string:project)/(stri ng:component)/(string:language)/ POST /api/components/(string: project)/(string: component)/translations/0 码力 | 667 页 | 9.36 MB | 1 年前3
共 292 条
- 1
- 2
- 3
- 4
- 5
- 6
- 30