D
D
Dmitry Kuznetsov2016-05-03 19:36:28
Angular
Dmitry Kuznetsov, 2016-05-03 19:36:28

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

1 answer(s)
R
Rustamka Vorontsov, 2016-05-03
@rmfordev

Try writing like this:

(function () {
    "use strict";

    angular.module('app', []);

    angular.module('app')
        .controller('MyCtrl, ['$scope', function($scope) {

        }]);
})();

to better understand write specifically
(function () {
    //angularjs
})();

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question