Angularjs Custom Directive not changing DOM

Use ng-if in Angularjs Directive

I have a showTaskDetailView$ stream that I can subscribe to and I can push a boolean value through it.

angular.module('Project').directive('something', () => {
    return {
        restrict: 'E',
        template: '<div>something: {{toggleValue}}</div>',
        replace: true,
        link() {
            something();
            function something() {
                showTaskDetailView$.subscribe(value => {
                    let toggleValue = value;
                    console.log(toggleValue);
                });
            }
        }
    };
});

When I run this directive and I change the showTaskDetailView$ value I see the new value in my console.log. But nothing is happening in the DOM.

Source: AngularJS