war alles in Ordnung arbeiten & plötzlich nicht sicher, warum ich diese Störung erhalte:platform_browser_dynamic_1.bootstrap ist keine Funktion + Winkel 2
TypeError: platform_browser_dynamic_1.bootstrap is not a function
Im Folgenden meine Komponente:
import { Component, Input, Output, EventEmitter, ViewChild, ElementRef, AfterViewInit } from '@angular/core';
import { Http, HTTP_PROVIDERS, Headers, Response } from '@angular/http';
import { Observable } from 'rxjs/Rx';
import { ContactService } from '../../services/contactService';
// Initialize jquery
declare var $:JQueryStatic;
@Component({
selector: 'login',
pipes: [],
providers: [ContactService],
directives: [],
styles: [String(require('../../../../../static/v4/angular/scss/login.scss')),],
templateUrl: '../../../../../templates/v4/angular/login/login.html'
})
export class Login {
@ViewChild('spreadsheetTable') el:ElementRef;
public statctUrl = STATIC_URL;
constructor(private contactService: ContactService) {}
ngOnInit() {
}
}
bearbeiten : Hier ist meine Bootstrapping-Datei main.ts (von RC4 -> RC5):
import {LocationStrategy, HashLocationStrategy} from '@angular/common';
import {bootstrap, platformBrowserDynamic} from '@angular/platform-browser-dynamic';
import {HTTP_PROVIDERS} from '@angular/http';
import {APP_ROUTER_PROVIDERS} from './app/app.routes';
import {AppModule} from './app/app.module';
platformBrowserDynamic().bootstrapModule(AppModule, [
HTTP_PROVIDERS,
APP_ROUTER_PROVIDERS,
{ provide: LocationStrategy, useClass: HashLocationStrategy }
])
.catch(err => console.error(err));
aber was Problem mit diesem 'Bootstrap (App, [ HTTP_PROVIDERS, APP_ROUTER_PROVIDERS, {bieten: LocationStrategy, useClass: HashLocationStrategy} ])' da bis jetzt in Ordnung, es funktioniert sein gerade jetzt dieses Problem –
zu schaffen Es ist veraltet mit RC5. Siehe dieses Dokument: https://angular.io/docs/ts/latest/cookbook/rc4-to-rc5.html. –
Ok, aber jetzt bekomme ich diesen Fehler: 'Uncaught TypeError: __webpack_require __ (...) ist keine Funktion für' styles: [String (require ('../../../ static/v4/angular/scss/app.scss '))], ' –