Skip to content
This repository has been archived by the owner on Oct 30, 2024. It is now read-only.

Commit

Permalink
add i18n to load plugins for local development, switch to factoryFor e…
Browse files Browse the repository at this point in the history
  • Loading branch information
kekekevin committed Apr 24, 2020
1 parent 56e3f71 commit 127087e
Show file tree
Hide file tree
Showing 3 changed files with 892 additions and 1 deletion.
2 changes: 1 addition & 1 deletion addon/services/ember-ambitious-forms.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default Ember.Service.extend({
_loadFormPlugins: Ember.on('init', function () {
// TODO: observe 'config.plugins' and load/unload changes
let owner = Ember.getOwner(this)
let afFieldClass = owner._lookupFactory('component:amb-form-field')
let afFieldClass = owner.factoryFor('component:amb-form-field').class
this.get('config.plugins').forEach((name) => {
let plugin = owner.resolveRegistration(`amb-form-plugin:${name}`)
if (plugin instanceof Ember.Mixin) {
Expand Down
Loading

0 comments on commit 127087e

Please sign in to comment.