I am faced with the challenge of dynamically creating and inserting a view into my Ember app (specifically off master - v1.0.0-rc.3-178-ge031b24). Recently, this view has been triggering the following notice:
DEPRECATION: Using the defaultContainer is no longer supported. [defaultContainer#lookup]
I have tried to modify my current implementation to address this issue, but so far, I have not found the right solution.
Currently, during route setup, I am attaching a new ViewContainer to the controller:
App.ThingRoute = Em.Route.extend
setupDetailContainers: (controller) ->
controller.set('imageContainer', Em.ContainerView.create())
controller.get('imageContainer').appendTo(App.rootElement)
Then, in the controller, when users click on an image thumbnail, the full-size image is inserted using:
showFullImage: (image) ->
image_full = image.asset_url.replace(':size', 'original')
container = @get('imageContainer')
container.pushObject App.ShowImageView.create({image: image_full})
If anyone has any advice on the correct approach to eliminate these deprecation warnings, it would be greatly appreciated.