From: import {LoadUserThreadsEffectService} from "./store/effects/load-user-threads.service"; import {SaveNewMessageEffectService} from "./store/effects/save-new-message.service"; import {RefreshMessageListEffectService} from "./s…
app //应用入口 directive //自定义指令 require-main //require的主配置文件  存放公共调用的js service //请求后端数据公有类 controllers所有ctrl文件 |--fun //存放公有ctrl 例如上传逻辑ctrl require-main.js requirejs.config({ baseUrl: '/', paths: { 'jquery': '/lib/jquery/1.9.1/jquery.min', 'angular': '…
前言 Angular Material(下称Material)的组件样式至少是可以满足一般的个人开发需求(我真是毫无设计天赋),也是Angular官方推荐的组件.我们通过用这个UI库来快速实现自己的idea. 在上节中我们安装了Angular,并新建了一个简单工程.这节中我们将会将Material导入工程中,简单写一个HelloWorld的例子,并讲解Angular模块中的declarations.imports.providers以及bootstrap等概念. 环境安装 Material简单说…
一.生成路由文件 按照惯例,有一个独立模块来配置相关路由,这个模块类的名字叫做AppRoutingModule,位于src/app下的app-routing.module.ts文件中. 使用CLI生成它. ng generate module app-routing --flat --module=app 然后查看src/app目录下是否生成成功. 接下来,我们查看生成的文件: import { NgModule } from '@angular/core'; import { CommonMo…
常用的到的网站 vue学习库: https://github.com/vuejs/awesome-vue#carousel (json数据的格式化,提高本地测试的效率) json在线编辑: http://www.bejson.com/http://www.kjson.com/ //提供fake的数据:http://jsonplaceholder.typicode.com/users /posts 100 posts/comments 500 comments/albums 100 albums/…
一.生成路由文件 按照惯例,有一个独立模块来配置相关路由,这个模块类的名字叫做AppRoutingModule,位于src/app下的app-routing.module.ts文件中. 使用CLI生成它. ng generate module app-routing --flat --module=app 然后查看src/app目录下是否生成成功. 接下来,我们查看生成的文件: import { NgModule } from '@angular/core'; import { CommonMo…
目录 前言 一.搭建项目  1.安装Angular CLI  2.创建项目  3.集成Element Angular 二.设置路由  1.创建路由模块  2.导入.导出RouterModule类  3.添加路由占位标签  4.创建路由跳转组件  5.添加路由跳转规则  6.实现跳转  7.获取当前路由参数 三.Elment Angular使用示例 四.总结 前言  Angular是目前主流的前端三大框架之一,它的上手稍有些难度,需要理解的概念很多,很多教程显得颇为复杂难懂.本文在作者自己探索的基…
在本教程中,我们将通过示例使用Angular 10材质构建模式弹出窗口. 在这里,我们将研究创建Angular 10项目,安装和设置Angular 10材质,以及创建自定义材质模块文件. 在本教程中,我们将通过示例使用Angular 10材质构建模式弹出窗口. Angular Material提供了现代UI组件,用于基于可在Web源码,移动和桌面上使用的材料设计规范来构建用户界面. 步骤1:建立Angular 10专案 打开一个新的命令行界面并运行以下命令: $ ng new angular-m…
Integrating AngularJS with RequireJS When I first started developing with AngularJS keeping my controllers and directives in separate .js files for better maintainability I ended up including lots of .js files on my pages. This approach has led to so…
requireJS加载codemirror,并且配合angularJs一起使用的时候,高亮显示代码编辑器.要注意以下几点: 1:普通Js加载CodeMirror  代码如下: <!DOCTYPE HTML> <html lang="zh-cn"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content=&…