Working on a user interface that contains a table where the column widths adjust according to percentage data. I'm using ng-repeat to populate the table, but need help setting unique widths for each piece of data received. Here's some of my AngularJS code:
var App = angular.module("myApp", []);
App.controller("maincontroller",function($scope){
$scope.info=[
{name:'aob',
number:20%},
{name:'cc',
number:15%},
{name:'mb',
number:20%},
{name:'ts',
number:6%},
{name:'ws',
number:8%},
{name:'t',
number:8%},
{name:'aob',
number:2%},
{name:'pb',
number:25%}
]
});
This is an excerpt from my HTML file where I need to add dynamic data into the table while the other tables are hard-coded.
<!doctype html>
<html ng-app="myApp">
... (the rest of the HTML code)
</body>
</html>