- 博客(12)
- 收藏
- 关注
原创 restful--002--使用jax-rs作为angular英雄服务端
源码https://pan.baidu.com/s/1E_QQNBRWc41VUn1T6IVRlQ3htztomcat文件https://pan.baidu.com/s/1mOzBwxQkLE0-gK8jnRMJ7Qzk4d1、英雄资源package com.restful.resources; import java.util.List; import javax.ws.rs.Consume...
2018-06-24 16:22:46 238 1
翻译 restful--001--使用jax-rs编写Hello World
源码https://pan.baidu.com/s/1E_QQNBRWc41VUn1T6IVRlQ3htztomcat文件https://pan.baidu.com/s/1mOzBwxQkLE0-gK8jnRMJ7Qzk4d1、web.xml<?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www....
2018-06-24 16:13:52 175
翻译 angular学习009路由
参考来源:https://www.angular.cn/tutorial/toh-pt5#add-dashboard-link-to-the-shell1、配置路由模块app\app-routing.module.tsimport {NgModule} from '@angular/core'; import {RouterModule, Routes} from '@angular/router...
2018-06-10 15:29:57 278 1
翻译 angular学习008服务
参考来源:https://www.angular.cn/tutorial/toh-pt4ng generate service herong generate service hero --module=app1、英雄服务import {Injectable} from '@angular/core'; import {Hero} from '../hero'; import {HEROES} f...
2018-06-10 10:11:00 181
原创 angular学习007提示服务注入错误AppComponent.html:2 ERROR Error: StaticInjectorError(AppModule)[HeroesComponent
AppComponent.html:2 ERROR Error: StaticInjectorError(AppModule)[HeroesComponent -> HeroService]
2018-06-10 09:42:16 15824
原创 angular学习006在angular6.0.8使用ng generate service创建服务报错
Argument type {providedIn: "root"} is not assignable to parameter type {providedIn: Type<any> | "root" | null}
2018-06-10 09:23:21 1922
翻译 angular学习005主从组件
参考来源:https://www.angular.cn/tutorial/toh-pt3ng generate component hero-detail1、详情模板app\hero-detail\hero-detail.component.html<div *ngIf="hero"> <h2>{{ hero.name | uppercase }} Detail <...
2018-06-10 07:53:55 300
翻译 angular学习004显示英雄列表
参考来源:https://www.angular.cn/tutorial/toh-pt21、创建模拟数据app\mock-heroes.tsimport {Hero} from './hero'; export const HEROES: Hero[] = [ {id: 11, name: 'Mr. Nice'}, {id: 12, name: 'Narco'}, {id: 13, ...
2018-06-09 22:59:41 450
翻译 angular学习003英雄编辑器
参考来源:https://www.angular.cn/tutorial/toh-pt11、新建组件src\app\heroes\heroes.component.tsimport { Component, OnInit } from '@angular/core'; import {Hero} from '../hero'; @Component({ selector: 'app-hero...
2018-06-09 22:04:57 265
翻译 angular学习002应用的外壳
参考来源:https://www.angular.cn/tutorial/toh-pt0ng new my-app1、修改文件my-app\src\app\app.component.tsimport { Component } from '@angular/core'; @Component({ selector: 'app-root', templateUrl: './app.com...
2018-06-09 08:02:09 138
翻译 angular学习001安装环境
参考来源:https://www.angular.cn/guide/quickstart1、下载安装note.js & npm https://nodejs.org/en/ node -v npm -v2、安装angular并新建App npm install -g @angular/cli ng -v 新建:ng new my-app 启动:ng ...
2018-06-09 07:49:42 132
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人