Is it possible to dynamically change global stylesheets?
EDIT: The purpose is to allow the user to pick the styles he prefers.
In Angular 1, I was able to wrap a controller around the head tag and use bindings in there.
Example below (simplified code):
index.html
<!DOCTYPE html>
<html ng-app="app" ng-controller="AppController">
<head>
<title>Title</title>
<link rel="stylesheet" ng-href="styles/{{current}}"/>
</head>
...
AppController
app.controller('AppController', ['$scope', function ($scope ) {
$scope.current = dynamicValue;
}]);
Is this possible in Angular 2?