当使用角CLI为我的应用程序生成路由模块时,我得到了以下错误:
ERROR Error: No provider for ChildrenOutletContexts!
at injectionError (core.es5.js:1169)
at noProviderError (core.es5.js:1207)
at ReflectiveInjector_.webpackJsonp.../../../core/@angular/core.es5.js.ReflectiveInjector_._throwOrNull (core.es5.js:2649)
a
我工作的角度7,并得到以下的错误。
错误;
ERROR Error: Uncaught (in promise): Error: Cannot match any routes. URL Segment: 'employees'
Error: Cannot match any routes. URL Segment: 'employees'
at ApplyRedirects.noMatchError (router.js:3410)
at CatchSubscriber.selector (router.js:3374)
at Catc
我创建了一个简单的NodeJS/Angular2 2应用程序,它在尝试访问应用程序的入口点页面时遇到了以下错误:
router_1.provideRouter is not a function
我不知道这个错误意味着什么,也不知道从哪里开始。有没有人对为什么会发生这种事有任何洞察力或想法?这是我的package.json文件(我认为这可能与一个角包有关)
{
"name": "udemy-nodejs-angular2",
"version": "1.0.0",
"private": true,
我已经将我的应用程序从Angular2升级到Angular 4。在此之前,包括路由在内的一切都在运行perfectly.But现在升级后,路由已经停止,每当我单击任何链接时,重定向都会失败,并给出错误:
Error: Uncaught (in promise): Error: Cannot activate an already activated outlet Error: Cannot activate an already activated outlet at k (http://localhost:3000/node_modules/zone.js/dist/zone.min.js
我试着和Webpack一起使用:
import angular from 'angular';
import uiRouter from 'angular-ui-router';
import createComponent from './create.component';
import tabs from 'angular-ui-bootstrap/src/tabs/index';
let createModule = angular
.module('create', [
uiRo
我正在创建一个以角为单位的项目,其中我已经在组件中应用路由。当我从主组件移到其他组件时,路由工作正常,但是当我尝试使用其他组件时,我会得到这个错误-
ERROR Error: Uncaught (in promise): Error: Cannot match any routes. URL Segment: 'categories/signIn'
Error: Cannot match any routes. URL Segment: 'categories/signIn'
at ApplyRedirects.push../node_modules/
我的angularjs示例应用程序在我基于netbeans的本地服务器上运行得很好。但是,当我将应用程序移到nginx服务器时,它会在浏览器中给出以下错误。
Error: [$compile:tpload] Failed to load template: views/login.html
http://errors.angularjs.org/1.3.15/$compile/tpload?p0=views%2Flogin.html
at REGEX_STRING_REGEXP (angular.js:63)
at handleError (angular.js:16133)
我收到以下错误
core.js:6210
ERROR Error: Uncaught (in promise): Error: Cannot match any routes. URL Segment: 'home/product'
Error: Cannot match any routes. URL Segment: 'home/product'
at ApplyRedirects.noMatchError (router.js:2628)
at Cat
我尝试了几种不同的方法,我将尝试重定向到不同的页面,但是得到404错误。
index.html
此页面很好,根目录正在呈现:
<p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
<!
我正试图在我的angular2应用程序中进行路由选择。我只是试着跟踪。
但在app.routing.ts中:
import { Routes, RouterModule } from '@angular/router';
它抱怨的:
node_modules/@angular/router/index"' has no exported member 'Routes'.
和
node_modules/@angular/router/index"' has no exported member 'RouterModu