Hi,
I have a jsonp data source and the response looks like below:

My controller (microsite.ts) look like this:
import { Component } from ‘@angular/core’;
import { NavController } from ‘ionic-angular’;
import { Http, Jsonp } from ‘@angular/http’;
@Component({
selector: ‘page-microsite’,
templateUrl: ‘microsite.html’
})
export class MicrositePage {
public micdetails: any;
constructor(public navCtrl: NavController, private http: Http, public jsonp: Jsonp) {
this.jsonp.get("http://localhost/way2college/index.php?option=com_directory&task=app.getmicrositedetails&id=125")
.subscribe(
res => {
this.micdetails = res.json();
console.log(this.micdetails);
}
);
}
}
When I try to console.log the variable this.micdetails.college_details.name it works well, but when I try to use the same variable in template file (microsite.html) like:
Microsite {{micdetails.college_details.name}}I get error as:
I am unable to understand, how can I use controller variables in template file.
