Sha256: 849b36f8c1ece420313a5c776216330757c1d5f80cbfb3f53317849296dfa54e

Contents?: true

Size: 669 Bytes

Versions: 1

Compression:

Stored size: 669 Bytes

Contents

@DashboardApp.factory 'populationDrilldownService', ($http) ->
  getPopulation: (p, functSuccess, functFailure) ->
    $http(
      method: 'GET'
      url: "/json/population?gen=#{p.genNum}")
        .then functSuccess, functFailure

  getCritterGenotype: (p, functSuccess, functFailure) ->
    $http(
      method: 'GET'
      url: "/json/population/critter/genotype?gen=#{p.genNum}&crit=#{p.critName}")
        .then functSuccess, functFailure

  getCritterPhenotype: (critName, functSuccess, functFailure) ->
    $http(
      method: 'GET'
      url: "/json/population/critter/phenotype?gen=#{p.genNum}&crit=#{p.critName}")
        .then functSuccess, functFailure

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rubyneat_dashboard-0.4.1 app/js/dashboard/services/population_drilldown_service.coffee