I wish the have a ul element and then in my json I have html containing list (li) elements from various social media sites.. when I put ngfor on the list items is creates multiple ul's for each of the outputted json records.. is it possible just to output each of the li's as plain html and not wrap them in an element
small sample of my json
{
"courses": [{
"tile_id": 0,
"tile_content": "<li class=\"grid-item horiz-double blog-tile\" data-item-id=\"0\">yrdy<\/li>"
}],
}
small sample of my angular service - this works perfectly and outputs the json but maybe im missing some kind of formatting setting
public getCourses() {
this._http.get(this.apiUrl).map(response => response.json()).subscribe(data => {
// console.log( data.courses );
this._dataStore.courses = data.courses;
// console.log(this._coursesObserverXX);
this._coursesObserverXX.next(this._dataStore.courses);
}, error => console.log('Could not load courses.'));
}
and my html
<ul class="list-group" *ngFor="#course of courses | async">
{{ course.tile_content }}
</ul>
the goal is to not have the ngfor output a wrapper and also to display the output as plain html rather than plaintext as it appears to come out