I have some AngularJS Code below where I am currently adding four records to roleList
. However, I would like to be able to add any number of records to roleList
. Is there a way for me to achieve this?
$scope.roleList = [
{"companyName": "Company 01", "id":"1", "position": "CEO"},
{"companyName": "Company 02", "id":"2", "position": "Board of Director"},
{"companyName": "Company 01", "id":"1", "position": "CEO"},
{"companyName": "Company 02", "id":"2", "position": "Board of Director"}
];