栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 面试经验 > 面试问答

找不到模块“ angular2 / angular2”

面试问答 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

找不到模块“ angular2 / angular2”

@simon错误说的是输入错误。但是对于其他进口商品,我已经发布了此答案,可能对其他人也有用。

import {Component, View, Directive, Input, Output, Inject, Injectable, provide} from 'angular2/core';import {bootstrap} from 'angular2/platform/browser';import {CORE_DIRECTIVES, FORM_DIRECTIVES, NgClass, NgIf  NgForm, Control, ControlGroup, FormBuilder, Validators} from 'angular2/common';import {RouteConfig, ROUTER_DIRECTIVES, ROUTER_PROVIDERS, Router, LocationStrategy, HashLocationStrategy} from 'angular2/router';import {Http, HTTP_PROVIDERS, RequestOptions, Headers, Request, RequestMethod} from 'angular2/http'

更新-

@View
现在不再在angular2中,因此无需导入

import {view} from 'angular2/core'

更新2

由于angular2在RC中,因此所有导入都发生了重大变化,如果所有更新的导入都在这里,则为列表-

angular2/core -> @angular/coreangular2/compiler -> @angular/compilerangular2/common -> @angular/commonangular2/platform/common -> @angular/commonangular2/common_dom -> @angular/commonangular2/platform/browser -> @angular/platform-browser-dynamicangular2/platform/server -> @angular/platform-serverangular2/testing -> @angular/core/testingangular2/upgrade -> @angular/upgradeangular2/http -> @angular/httpangular2/router -> @angular/routerangular2/platform/testing/browser -> @angular/platform-browser-dynamic/testing


转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/484634.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号