import { Component } from '@angular/core';
import { IonicPage, NavController, NavParams } from 'ionic-angular';

@IonicPage()
@Component({
  selector: 'page-read-learn',
  templateUrl: 'read-learn.html',
})
export class ReadLearnPage {

  list = [
      {name:'杨阳洋1', test:[
          {title:"看云识天气的解释1",content:"蚂蚁上树蚂蚁上树蚂蚁上树" },
          {title:"看云识天气的解释2",content:"蚂蚁上树蚂蚁上树蚂蚁上树" },
          {title:"看云识天气的解释3",content:"蚂蚁上树蚂蚁上树蚂蚁上树" },
          {title:"看云识天气的解释4",content:"蚂蚁上树蚂蚁上树蚂蚁上树" },
          {title:"看云识天气的解释5",content:"蚂蚁上树蚂蚁上树蚂蚁上树" },
          {title:"看云识天气的解释5",content:"蚂蚁上树蚂蚁上树蚂蚁上树" },
          {title:"看云识天气的解释5",content:"蚂蚁上树蚂蚁上树蚂蚁上树" },
          {title:"看云识天气的解释5",content:"蚂蚁上树蚂蚁上树蚂蚁上树" },
          {title:"看云识天气的解释5",content:"蚂蚁上树蚂蚁上树蚂蚁上树" },
          {title:"看云识天气的解释5",content:"蚂蚁上树蚂蚁上树蚂蚁上树" },
        ]},
      {name:'杨阳洋1', test:[
              {title:"看云识天气的解释1",content:"蚂蚁上树蚂蚁上树蚂蚁上树" },
              {title:"看云识天气的解释2",content:"蚂蚁上树蚂蚁上树蚂蚁上树" },
              {title:"看云识天气的解释3",content:"蚂蚁上树蚂蚁上树蚂蚁上树" },
              {title:"看云识天气的解释4",content:"蚂蚁上树蚂蚁上树蚂蚁上树" },
              {title:"看云识天气的解释5",content:"蚂蚁上树蚂蚁上树蚂蚁上树" },
          ]},
      {name:'杨阳洋1', test:[
              {title:"看云识天气的解释1",content:"蚂蚁上树蚂蚁上树蚂蚁上树" },
              {title:"看云识天气的解释2",content:"蚂蚁上树蚂蚁上树蚂蚁上树" },
              {title:"看云识天气的解释3",content:"蚂蚁上树蚂蚁上树蚂蚁上树" },
              {title:"看云识天气的解释4",content:"蚂蚁上树蚂蚁上树蚂蚁上树" },
              {title:"看云识天气的解释5",content:"蚂蚁上树蚂蚁上树蚂蚁上树" },
          ]},
  ]
  constructor(public navCtrl: NavController, public navParams: NavParams) {
  }

  ionViewDidLoad() {
    console.log('ionViewDidLoad ReadLearnPage');
  }

  //
    select(test,boolean){
      test.checked = boolean;
      console.log(this.list)
    }

}
