I followed some tutorials to create corner directives. In an isolated scope, some textbooks define scope as follows:
scope: {
model: '=?',
data: '@?'
}
Meanwhile, some textbooks define a sphere without a question mark, like this:
scope: {
model: '=',
data: '@'
}
Can anyone explain me the difference or purpose of this with examples? Thank.
source
share