2
Cómo establecer el ancho de div usando ng-style
Estoy tratando de establecer el ancho div dinámicamente usando ng-stylepero no estoy aplicando el estilo. Aquí está el código: <div style="width: 100%;" id="container_fform" ng-controller="custController"> <div style="width: 250px;overflow: scroll;"> <div ng-style="myStyle">&nbsp;</div> </div> </div> Controlador: var MyApp = angular.module('MyApp', []); var custController = MyApp.controller('custController', function ($scope) { $scope.myStyle="width:'900px';background:red"; }); ¿Qué me estoy …