Skip to content

Create a new isolated scope when a module is compiled #8

@emanuelcostea

Description

@emanuelcostea

If the module has an isolated scope then any properties that are set on the $rootScope can't be used.
To create a new scope we need to use $scope.$new(true) that returns a new $scope object. True means that is isolated and will not inherit any properties.

Docs about $new https://docs.angularjs.org/api/ng/type/$rootScope.Scope#$new

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions