0

I use $routeProvider and load views HTML via <div ng-view></div>. In loaded file HTML there is HTML:

<script src="/public/js/tags/tokenize/jquery.tokenize.js"></script>
<link href="/public/js/tags/tokenize/jquery.tokenize.css" rel="stylesheet" type="text/css">

But these files are not connected in page. Also JS does not exicute on ng-view

1
  • 2
    Have you added something like <script src="resources/vendors/angular/angular.min.js" /> into your html file ? Commented May 2, 2015 at 22:08

1 Answer 1

0

This is because Angular thinks your <script> is the directive script. You have two possible solutions:

  • create a directive
  • include your code out of the app.

If you need to dinamically load your resources use a service, as suggested in this question.

Also, for reference, take a look to this question too

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.