O GoConqr está de visual novo! Conte para nós o que você achou.

Notas

Architecture and general layout

James Drummond Angular A-Level Inglês 1 página

Conteúdo das notas (1)

Página 1

Controllers, directives and unit testing Should I put methods in the directive or the controller?

Thinking through how you're going to unit test things will force you to think carefully about whether to put a method in a directive or the controller.

In general, methods related to business logic, navigation, etc. should be in the controller (and the directive can inherit them)

A directive is concerned with the view / DOM. If you're testing a method in a directive you should be testing it's changes to the DOM.

Informações

Descrição
A-Level Angular Notas sobre Architecture and general layout, criado por James Drummond em 04-05-2015.
Criado por
James Drummond · mai 2015
Atualizado
19 fev 2016
Visualizações
22
Avaliação

Fale Conosco

Sobre o que é sua mensagem?

O que você acha do novo visual?

Você gostou?