code: function(name) {
        var i;
        if (this.$editables.length) {
          //activate by name
          if (angular.isString(name)) {
            for(i=0; i<this.$editables.length; i++) {
              if (this.$editables[i].name === name) {
                this.$editables[i].activate();
                return;
              }
            }
          }
  
          //try activate error field
          for(i=0; i<this.$editables.length; i++) {
            if (this.$editables[i].error) {
              this.$editables[i].activate();
              return;
            }
          }
  
          //by default activate first field
          this.$editables[0].activate();
        }
      }
docs: Sets focus on form field specified by `name`.
  
  @method $activate(name)
  @param {string} name name of field
  @memberOf editable-form