Git Product home page Git Product logo

angulardart.org's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

angulardart.org's Issues

1.x tutorial single quotes displaying as HTML Entities

Chapter 2, 3 and 4 all have issues where some of the code example sections display single quotes ' as '

https://angulardart.org/tutorial/04-ch02-component.html

@Component(
    selector: 'recipe-book',
    templateUrl: 'recipe_book.html')
class RecipeBookComponent {...}

https://angulardart.org/tutorial/05-ch03-component.html

@Component(
    selector: 'rating',
    templateUrl: 'rating.html',
    cssUrl: 'rating.css')
class RatingComponent {...}
@NgTwoWay('rating')
int rating;</p>

<p>@NgAttr(&#39;max-rating&#39;)
set maxRating(String value) {...}

https://angulardart.org/tutorial/06-ch04-directive.html

...
import &#39;package:angular/angular.dart&#39;;</p>

<p>@Decorator(selector: &#39;[tooltip]&#39;)
class Tooltip {
  final dom.Element element;</p>

<p>@NgOneWay(&#39;tooltip&#39;)
  TooltipModel displayModel;
  ...
  Tooltip(this.element) {
    ...
  }
  ...
}
@Decorator(selector: &#39;[attributeName]&#39;)
class MyDecorator {
  @NgOneWay(&#39;attributeName&#39;)
  Model model;
  ...
  MyDecorator(/* Optional arguments */) {
    ...
  }
  ...
}
import &#39;dart:html&#39; as dom;
...
// In an onMouseEnter handler:
tooltipElem = new dom.DivElement();</p>

<p>// ...Create children using info from displayModel...
// ...Add the children to the <div>...
// ...Style the <div>...</p>

<p>dom.document.body.append(tooltipElem);

demo: locale scripts are not loaded over HTTPS

Hello there,

first of all, well done with www.angulardart.org!!!

URL: https://www.angulardart.org/demo/
Browser: Chrome Version 33.0.1750.152

console output:
[blocked] The page at 'https://www.angulardart.org/demo/' was loaded over HTTPS, but ran insecure content from 'http://firebase.github.io/angularFire/angularFire.js': this content should also be loaded over HTTPS.

following list of scripts (locale) are involved:

While loading, chrome freezes indefinitely.

Greetings from the mountains...

Hierarchical binding problem

I have this hierarchical structure MyComponent -> A -> B -> String (as you can see below) that attempts to bind a.b.text to a input box, on MyComponent's template

@ng.Injectable()
class B {
    String text;
}

@ng.Injectable()
class A {
    B b;

    A (this.b);
}

@ng.Component(
    selector : "my-component",
    template: '{{a.b.text}} Name: <input type="text" ng-model="a.b.text">'
)
class MyComponent {
    A a;

    MyComponent(this.a);
}

I get this error

Missing getter: (o) => o.b
...
Exception: The null object does not have a method 'call'.
NoSuchMethodError: method not found: 'call'
Receiver: null
Arguments: [Instance of 'A']

My module configuration is

class MyAppModule extends Module {
    MyAppModule() {
        bind (EventoComponent);
        bind (A);
        bind (B);
    }
}

//Inside main()
applicationFactory()
    .addModule(new MyAppModule())
    .run();

and pubspec file

name: restonetest
description: A sample web application
dependencies:
  angular: any
  appengine: any
  browser: any
  di: any
  fp: any
  redstone: any
  redstone_mapper: any
  shelf_static: any
transformers:
- redstone_mapper
- angular:
    html_files:
    - lib/client/models/evento/evento.html

Make <code> with links visually different from <code> without links

Anchored <code> styled text (i.e. with an embedded link) is visually no different from just regular <code>-styled text. Could that be changed? Sometimes, e.g., class names link to API documentation but unless the reader hovers over the occurrences, he/she will not know there is a link.

Feature: Add support for markdown files

angulardart.org currently requires pages to be HTML. It'd be great to support Markdown pages, as well. (Besides Markdown being simpler to edit and less forbidding, having Markdown support would make it easier to move content that's already been published elsewhere in Markdown.)

Update tutorials to use version 0.13.0

This is the other half of the work to upgrading the tutorials to use the latest angular version: dart-archive/angular.dart.tutorial#126

I'm gonna give this a shot and see how it goes. Just wanted the issue number to commit against.

The most important part of this is the last page covering the platform and dart support JS libs. These are hard to know for beginners (and intermediates) so worse case that needs to get updated.

Implement templates (and remove boilerplate)

The HTML pages on angulardart.org currently have a lot of boilerplate HTML, which is hard to keep in sync and which makes the content harder to find when you're editing a page.

Styles not applied through CSS shim when selector uses characters unsafe for attribute names

When using the TranscludingComponentFactory the css is shimmed using a tag pulled from the component selector. Selectors in angular are allowed to include characters which cannot be used in an attribute name. For instance the following is a valid selector for a component:

component-name[attribute-name]

CSS on a component with this selector will not be applied to elements since attempting to add the selector as an attribute causes an InvalidCharacterError (in chrome) in BlinkElement.setAttribute
For an ASCII selector it looks like the valid characters are [a-zA-Z0-9:_-.]

https://github.com/WebKit/webkit/blob/master/Source/WebCore/dom/Document.cpp#L4049
https://github.com/angular/angular.dart/blob/master/lib/core_dom/transcluding_component_factory.dart#L44

Use angular.dart rather than angular.js

It would be great to remove <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.10/angular.min.js"></script> from the site and use the dart version instead !

Import the tutorial code

As the tuorial posts now live in this repo, it would be great to also import the code from the tutorial repo and remove this repo from GH.

Having 2 different GH repos is confusing and might lead to the doc being out of sync with the code.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.