Skip to content

Instantly share code, notes, and snippets.

@texirv0203
texirv0203 / gist:4d4d81cc1e878a1fd4d90c8ec7ab52d5
Created September 17, 2017 01:16
typeError: Cannot read property 'tigerStart' of undefined
- I am new to typescript and angular js.
- I tried to include another component code into my code.
- which is baby.js code into my code
- but I am getting an error. TypeError: Cannot read property 'tigerStart' of undefined
- can you guys tell me how to fix it.
- providing my code below
<!-- language-all: lang-or-tag-here -->
import {Component,AfterViewInit, ElementRef, Inject,Input,EventEmitter,NgZone,OnInit, ViewChild, Pipe} from '@angular/core';
import {Router, ActivatedRoute} from '@angular/router';
import {NetworkCarousel} from '../shared/content/network-carousel';
import { SPORTService } from '../../services/SPORT.service';
// import {ProgressCircle} from '../shared/progress/progress-circle';
import {validationService} from '../shared/content/validation';
import {tigerLeftSliderComponent} from './tiger-left-slider';
import {KendoGridComponent} from '../grid/grid.component';
import {recentPinnedHistoryService} from '../shared/content/recent-pinned-history';
import {Pager} from '../common/pager';
```
<!-- language-all: lang-or-tag-here -->
- have written test case for jumping method,
- but its not going inside onloadend method seat.onloadend, when I see code coverage report.
- - in createSpyObj i called loadend but still its not going inside
- can you guys tell me how to fix it.
- providing my code and test case below.
- I am trying to wite test case for each and every line.
<!-- language-all: lang-or-tag-here -->
@texirv0203
texirv0203 / test-react.md
Created March 27, 2016 00:10
new html page which contains form fields using react
  • i am trying to create a new html page which contains form fields
  • i am trying to develop using react js
  • so i have used the react-starter-kit
  • in that src folder can you tell me where I can copy my html content in a page..
  • can you tell me whats the url should i need to hit to see the webpage...since I see only this url they have given http://localhost:3000/
  • providing image of my folder structure
  • i read through documentation but I am not able to find it https://github.com/kriasoft/react-starter-kit/tree/master/docs