mirror of
https://github.com/BeamMP/Docs.git
synced 2025-07-02 07:55:37 +00:00
Update docs/en/beamng/dev/modding/ui-apps.md
Co-authored-by: O1LER <44237025+O1LER@users.noreply.github.com>
This commit is contained in:
parent
565487aa0d
commit
0385a8307b
@ -115,7 +115,7 @@ angular.module('beamng.apps')
|
||||
}
|
||||
}])
|
||||
```
|
||||
The first things you see is the usage of <b>$scope</b>. This is very important because you will need to define your variables and functions within <b>$scope</b> to be able to access it from the <b>Html</b> inside any <b>ng-*</b> tag.
|
||||
Note the usage of <b>$scope</b>. This is very important because you will need to define your variables and functions within <b>$scope</b> to be able to access it from the <b>Html</b> inside any <b>ng-*</b> tag.
|
||||
So in this example, after the ``sendMessage()`` function being executed from the <b>Html</b> it will send it to a lua file located in the extensions directory of the mod and execute the ``modifyMessage()`` function inside this lua file.
|
||||
|
||||
This lua function look like this :
|
||||
|
Loading…
x
Reference in New Issue
Block a user