Hacker News new | past | comments | ask | show | jobs | submit login

This is a bad example. Why do that when you could just bind directly:

  <span>{{ someValue }}</span>
And in the controller JS file do

  switch (foo) {
    case 'bar':
      scope.someValue = 'hello';
      break;
    ...



Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: