QC
QC
有controller也可以的,只要能拿到 `$compile` service 就可以了。
``` js $scope.load=function() { require.async(['./try.css','./try.html','./try.js'],function(css,html,js){ $compile(html)($scope); angular.element(document.body).append(html) }); } ``` 你的代码有 2 个问题: 1. 需要把 `try.js` 动态注入到 angular.module 里面去(动态注入你就必须用到 angular-async-loader) 2. 不能 append 原始的 html, 而是应该 append 编译后的 dom 对象...
`angular-async-loader` 已经支持 AMD/CMD 加载,可以直接使用
是因为你在 try.js 里面的 controller 是动态加载的。 angular 不能在 `angular.bootstrap()` 之后,再通过 `app.controller(...)` 注册任何的 controller。 所以你的原始代码在 $compile(html)(scope) 的时候会找不到 controller。 虽然可以通过 `angular-async-loader` + `$compile` 来解决你的问题,不过还是建议你用 `ui-router` + `angular-async-loader` + `require.js` 来做。 可以参考我的 demo 代码:https://github.com/subchen/angular-async-loader/tree/master/demo
能提供相关的demo代码来验证这个Fixes吗?可以修改源代码里面的demo
@Econa77 Today is 2018, is this inprogress? I want a hotkey to populate a window to search history and click to paste it.
1. 首先你需要从 oracle 官网下载 javadoc zip 包,然后解压 https://www.oracle.com/technetwork/java/javase/documentation/index.html 2. git clone 整个项目 ``` curl -fSL https://github.com/subchen/javadoc.chm/archive/2.1.0.tar.gz -o javadoc.chm-2.1.0.tar.gz tar -zxvf javadoc.chm-2.1.0.tar.gz ``` 3. ./run.bat 如果下载中文版的,编码应该是 GBK,英文版的应该是 utf-8 或者 iso8859-1
build.bat is generated after you run.
namespace does not supported for `go-xmldom`. See https://github.com/subchen/go-xmldom/blob/master/query.go#L64-L66 Need to enhance it.
A new branch `namespace` is inprogress for xml namespace prefixes support Completed: - ParseXXX() support - XML() support Todo: - CreateNodeWithNS - SetAttributeValueWithNS - QueryXXX