adambard / adambard/angular-elasticsearch-demo

factory and controller

Aberta
#2 1 comentário 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
JavaScript
Estrelas
64
Forks
35
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

Could you also please explain the meaning of:
function($q, elasticsearch, $location)

you pass to the factory?

and:
function(recipes, $scope, $location)
you pass to the controller?

I got the sense you pass a value from the controller to the factory, is it that?
(from input search field, to factory, which produces the obj of results)
But I didn't understand how is done exactly.

Also,
what's the need of:
['$locationProvider', function($locationProvider){
$locationProvider.html5Mode(true);
}]

in the module?
I read your blog but didn't understand these passages.

Thank you!

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.