@Muffin
Nothing here yet.
Nothing here yet.
No blogs yet.
Turns out it had to do with some faulty html that remained when I used my React app as reference (the use of className instead of class specifically), but hey, in the process I learned something about Angular I didn't know about in regards to View Encapsulation, so I'd say that's a nice bonus. Thanks for the help!
I've worked a bit on it, and fixed the problem with getting the json. Seems like I didn't go deep enough into the json to fetch the object correctly. My code looks like this now: import { Component, OnInit } from '@angular/core' ; import { HttpClient } from '@angular/common/http' ; import { HttpErrorResponse } from '@angular/common/http' ; import 'rxjs/add/operator/map' ; import 'rxjs/add/operator/catch' ; @Component({ selector: 'app-root' , templateUrl: './app.component.html' , styleUrls: [ './app.component.css' ] }) export class AppComponent implements OnInit { private concertsUrl = './assets/concerts.json' ; concerts : string []; constructor (private httpService: HttpClient) {} ngOnInit() { this .httpService.get( this .concertsUrl) .subscribe( data => { this .concerts = data[ "concerts" ] as string []; console .log( this .concerts[ 1 ]); }, (err: HttpErrorResponse) => { console .log (err.message); } ); } } Now I still have the problem with needing to filter out non-featured concerts, and I read your above suggestion, but I can't seem to get it to work correctly. How and where exactly would I use a new observable to filter the concerts in the above code snippet? Thanks in advance by the way, I appreciate the help.
I have a main page that loads several React Apps via Ajax, the loader is supposed to use the CDNs for React and ReactDOM I specified on my main page so it doesn't loads those four times for each app. At the same time it's also supposed to tell the app NOT to use externals when they're tested in isolation. I was mainly following this guide: https://medium.com/@ rchaves /building-microfrontends-part-iv-using-cdns-tech-radar-for-consensus-7dd658c1edb7 But I'm guessing the webpack version in there is outdated, as my config looks pretty different.