MenuController.js angular.module('myApp'). The Angular Class binding is used to add or remove classes to and from the HTML elements. Partial View Code: ~/Views/ArticleType/_Add MVC Controller: ArticleTypeController //other scripts files e.g app.js and angular.js are included in main layout file.Īngular Controller to load modal with the partial view. ![]() ![]() When our isActive results to true the active class will be added (otherwise removed). My View in rendered properly in modal dialog, but the only problem is that my partial view which is rendered also uses angular expressions etc.Īnd for some reason angular is not working in my partial view, but if i load this partial view in some other view without ajax call then it angular works properly. angular11, angular2-query-builder, angular-breadcrumb, angularbuild, angular-carbon-design-system, angular-cdk-drag-drop, angular-cli-v11. To toggle a class with Angular, we can use the class.class-name syntax to supply a condition to be evaluated: This class syntax is actually part of Angular’s NgClass directive, through Input ('class').I am currently loading Partial View returned by MVC controller to a model dialog via AngularJS $http.get call.
0 Comments
Leave a Reply. |