Computer Science, asked by sankarggce, 1 year ago

Which is not true about directives?

Answers

Answered by srushti2195
1
that they are not directives
Answered by Sidyandex
0

This is the default value of scope in the directive definition.

In this case, the directive has the same scope as its parent controller.

The following is an example of creating a movie directive:

We create a controller and define a movie title in it.

This movie will then be modified in the directive.

• Creating an Angular app and controller

var movieApp = angular.module(""movieApp"",[]);


movieApp.controller(""movieController"",function($scope){

   $scope.movie = ""Ice Age"";

});

Similar questions