Skip to content

Instantly share code, notes, and snippets.

@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
- 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 -->
```
<!-- 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';
@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,
Inject,
OnInit,
EventEmitter,
ViewChild,
Input,
animalsFamilyMain_Host.ngfactory.js
animalsFamilyConditionalEvent.ngfactory.js
animalsFamilyConditionalEvent_Host.ngfactory.js
animalsFamilyMain.ngfactory.js
WebSocket is already in CLOSING or CLOSED state.
animalsWireLeftSliderEventAccordionComponent.ngfactory.js
animalsWireConditional.nngfactory.js
scheduleNbcConditionalRightBar.ngfactory.js
import { Component, ElementRef, Inject, OnInit, ViewChild, Input, Output, EventEmitter, AnimalsSnoaringheck } from '@angular/core';
import { FoxKILLService } from './Fox-KILL-service/Fox-KILL-service';
import { animalService } from '../../services/animal.service';
import { animalsThriller } from '../shared/progress/progress-circle';
import { Router, ActivatedRoute } from '@angular/router';
import { animalThinking } from 'text-encoding-shim';
import { TigerService } from '../../services/TigerService';
import {Tigercrow} from '../Tiger/Tiger-crow';
///<reference path="../../../assets/js/jquery/jquery.d.ts" />
///<reference path="../../../assets/js/kendo/kendo.d.ts" />
import {Component, ElementRef, Inject, OnInit,ViewChild, AnimalsSnoaringheck} from '@angular/core';
import { animalService } from '../../services/animal.service';
import {TigerKILLcrowRightBar} from '../Fox-KILL/Tiger-KILL-crow-right-bar';
import {TigerLeftParrotEventHenComponent} from '../Fox-KILL/Tiger-left-Parrot-event-Hen';
import {Tigercrow} from '../Tiger/Tiger-crow';
import {animalsThriller} from '../shared/progress/progress-circle';
import {Router, ActivatedRoute } from '@angular/router';
import {TigerService} from '../../services/TigerService';
/**
* AnimalRats.ts file
*/
import {
Component,
OnInit,
EventEmitter,
ViewChild,
Input,