machineboy2045/angular-selectize — pull request #18 by gaiottino (2014-11-21 17:26:26+00:00)
Title: Default config wasn't default...

I've made a small change to the directive so that default config actually becomes default. In the current implementation it's mandatory to pass config to each instance of selectize. With my change, you can define

```coffeescript
MyApp.value('selectizeConfig', {
valueField: 'id'
labelField: 'name'
searchField: 'name'
maxItems: 1
preload: true
})
```

as the readme suggests and then the above is used as default. Once you've defined the default config you can create an instance with just

```html

```

Previously the above line threw an error since `scope.config` is not defined. If you want to override some default config, you can still initiate the directive as before i.e.

```html

```