Skip to content

Update to 1.0.0 breaks inline directive #194

@websirnik

Description

@websirnik

I've updated from 1.0.0-beta-2 to 1.0.0, the following declaration has stopped working for me:

    <div ng-switch-when="some-clause" >
        <div oc-lazy-load="['/vendors/file1.js', '/vendors/file2.js' ]">
            <my-directive url="{[ vm.url ]}"></my-directive>
        </div>
    </div>

I can see that /vendors/file1.js& /vendors/file2.js were loaded, but my-directive never got compiled. fyi my-directive is not inside those files, it was loaded before.

In the docs you mention different syntax, but it produces an error:

<div oc-lazy-load="{['js/testModule.js', 'partials/lazyLoadTemplate.html']}">
  <!-- Use a directive from TestModule -->
  <test-directive></test-directive>
</div>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions