Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Extend BC example for feat($compile) in > Angular 1.6.0 docs #15740

Closed
@lbayerl

Description

@lbayerl

Do you want to request a feature or report a bug?
issue in doc - wanted to create PR but couldn't.

What is the current behavior?

in CHANGELOG.md there is this BC description for feat($compile): https://github.com/angular/angular.js/blob/master/CHANGELOG.md#breaking-changes-1 regarding the 'binding' in 'components'

What is the expected behavior?

The same behaviour exists when you use the controllerAs pattern like e.g.

  angular
    .module('myApp')
    .directive('myDirective', myDirective);

  function myDirective() {
    return {
      restrict: 'E',
      scope: {
        value: '='
      },
      controller: 'myController',
      controllerAs: 'vm',
      bindToController: true,
      templateUrl: 'myTemplate.html'
    };
  }

You want have access to vm.value in your Controller.

What is the motivation / use case for changing the behavior?
Extend the example for the BC.

**Which versions of AngularJSare affected by this issue?
All version > 1.6.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions