Answer the question
In order to leave comments, you need to log in
Styles/scripts not working in nested Angular template?
There was a problem with Dropdown in Semantic UI ( Dropdown not working in SemanticUI? ). I seem to understand what the reason is, but I don’t understand how to fix it.
I have a website in Angular. Working with ng-view to display templates. Nested templates are connected normally, styles work, but apparently not scripts, since the drop-down list does not work.
PS: The problem is definitely not in connecting files. Since I tried to write without Angular, everything works fine.
For a week now I can’t figure out what the problem is ... Please help.
Answer the question
In order to leave comments, you need to log in
Try writing like this:
(function () {
"use strict";
angular.module('app', []);
angular.module('app')
.controller('MyCtrl, ['$scope', function($scope) {
}]);
})();
(function () {
//angularjs
})();
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question