Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Developer Documentation
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
brienne
Developer Documentation
Commits
5cb11b87
Commit
5cb11b87
authored
7 years ago
by
totten
Browse files
Options
Downloads
Patches
Plain Diff
AngularJS Loader - Misc copy-edit
parent
e7fa4a97
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/framework/angular/loader.md
+11
-6
11 additions, 6 deletions
docs/framework/angular/loader.md
with
11 additions
and
6 deletions
docs/framework/angular/loader.md
+
11
−
6
View file @
5cb11b87
...
...
@@ -66,7 +66,7 @@ For a full list, try passing --user=[username].
$ cv ang:module:list --user=admin
```
Under-the-hood, this library of modules is
defined
via
Under-the-hood, this library of modules is
built
via
[
hook_civicrm_angularModules
](
/hooks/hook_civicrm_angularModules.md
)
, e.g.
```
php
...
...
@@ -117,7 +117,11 @@ and loads them on the page. This will include:
`array('civicrm/a')`
. In other words, if you don't specify otherwise,
all modules are loaded on
`civicrm/a`
.
## Custom base-pages
!!! note "How does
`load()`
output the
`<script>`
tag(s)?"
`load()`
uses
[
CRM_Core_Resources
](
https://wiki.civicrm.org/confluence/display/CRMDOC/Resource+Reference
)
to register JS/CSS files.
## Other base-pages
Loading all Angular modules on one page poses a trade-off. On one hand, it
warms up the caches and enables quick transitions between screens. On the
...
...
@@ -175,7 +179,8 @@ $ cv url 'civicrm/caseadmin/#/caseType'
!!! caution "Embedding Angular in other contexts"
The `AngularLoader` does not require a standalone page -- for
example, you might inject Angular onto a pre-existing, non-Angular page
by using `hook_civicrm_pageRun` and `AngularLoader`. Some extensions do
this -- though it remains to be seen whether this is *wise*.
In the example, we created a new, standalone page. But you can use
`AngularLoader` in other ways -- eg, you might listen for
`hook_civicrm_pageRun` and embed Angular onto a pre-existing,
non-Angular page. Some extensions do this -- though it remains to be
seen whether this is *wise*.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment