Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

16.2.1-alpha.1: dxTemplate directive is not working when used in angular-cli #178

Closed
kvet opened this issue Oct 21, 2016 · 1 comment
Closed
Assignees
Labels
Milestone

Comments

@kvet
Copy link
Contributor

kvet commented Oct 21, 2016

The following error is raised when using [email protected]:

$ is not defined
    at DxTemplateDirective._renderCore (dx.template.js:31)
    at DxTemplateDirective.render (dx.template.js:65)
    at inheritor._renderContentImpl (button.js:139)
    at inheritor._renderContentImpl (class.js:16)
    at ui.widget.js:251
    at deferExecute (common.js:88)
    at Object.deferRender (common.js:109)
    at inheritor._renderContent (ui.widget.js:250)
    at inheritor._render (ui.widget.js:240)
    at inheritor._render (class.js:16)
@kvet kvet added this to the 16.2-alpha.2 milestone Oct 21, 2016
@kvet kvet self-assigned this Oct 21, 2016
@kvet
Copy link
Contributor Author

kvet commented Oct 21, 2016

I suggest you temporarily add jQuery as a global script into angular-cli.json. See the following example:

      "scripts": [
        "../node_modules/jquery/dist/jquery.min.js"
      ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant