angular-ui/ui-grid

Url in cellTemplate causes 2 invalid get requests

Open

#5.820 aberto em 17 de nov. de 2016

Ver no GitHub
 (0 comments) (0 reactions) (0 assignees)JavaScript (2.496 forks)batch import
good first issue

Métricas do repositório

Stars
 (5.395 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

If I have cellTemplate: '< div class="ui-grid-cell-contents">< img src="{{ COL_FIELD }}"/>< /div >'

I get these invalid get requests when the grid initialises: GET https://127.0.0.1/%7B%7B%20grid.getCellValue(row,%20col)%20%7D%7D 404 (Not Found) GET https://127.0.0.1/%7B%7B%20COL_FIELD%20%7D%7D 404 (Not Found)

Which causes havoc with our error stats. Apart from that everything works fine and images are displayed correctly. If I remove the img tag I can see that all my urls are correct:

cellTemplate: '< div class="ui-grid-cell-contents" >{{ COL_FIELD }}< /div >'

Guia do colaborador