Why do I get js execution errors with angular.dart 0.10 and ng-view? -


I have migrated so far. Expected works in darts , but dart2js via JS I get unproved error in web console:

  'Ctrl '. STACKTRACE: Error on dart.wrapException at the StaticClosureMap.lookupGetter $ 1 (http: // localhost: 8080 / app / main.dart.js (http: // localhost: 8080 / app / main.dart.js: 2390: 15) 8926: 17) Dynamic Pursarback.NEEVESHScope $ 1 (http: // localhost: 8080 / app / main.dart.js: 7177: 21) on DynamicParserImpl.parseAccessOrCallScope $ 0 (http: // localhost: 8080 / app / main. Dart Dynamic Percer Implements.DynamicParserImpl.parseAccessOrCallMember at $ 0 (http: // localhost: 8080 / app / main) on primary $ 0 (http: // localhost: 8080 / app / main.dart.js: 7507: 21) DynamicParserImpl.parsePrefix $ 0 (http: // localhost: 8080 / app / main.dart.js: 7460: 21) at DynamicParserImpl.parseMultiplicative at $ 0 (http: // localhost: 8080 / app / dart.js: 7464: 21) DynamicParserImpl.parseRelational at $ 0 (http: // localhost: 808 0 / $) on DynamicParserImpl.parseAdditive $ 0 (http: // localhost: 8080 / app / main.dart.js: 7428: 21) at main.dart.js: 7439: 21) App / main.dart.js: 7413: 21)   

pubspec.yaml

  name: app version: 0.0.1- Dev dependencies: angular: any browser: any dev_dependencies: united: no transformer: - angular   

Controller:

  @ controller (selector: '[myCtrl]', publish: 'ctrl') class MyController {String search = 'test'; }   

HTML Template:

  & lt; Div myCtrl & gt; & Lt; Input ng-model = "ctrl.search" & gt; & Lt; / Input & gt; {{Ctrl.search}} & lt; / Div & gt;   

The error is only a & lt; Ng-view & gt; . If I add the html directly to the main HTML then the JS error does not appear.

Powell Zabanov indicates:

I believe Search for your template file that the transformer is unable to find, so that you may need to include it manually:

Further:

Transformer is expected Now, afaik, it only picks up the template file of the component so that you will not have to manually list them so that template files will be better in recognizing

For now, you must manually add all the Untrak HTML templates to your pubspec.yaml in the html_files section:

  Web / Template 1.html - Web / Template 2.html - Web / Template 3.html    

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -