Code Monkey home page Code Monkey logo

angularjs-atom's Introduction

AngularJS v1.x support in Atom

Adds syntax highlighting and snippets to AngularJS v1.x in Atom.

Originally converted from the AngularJS TextMate bundle.

Contributions are greatly appreciated. Please fork this repository and open a pull request to add snippets, make grammar tweaks, etc.

Supported features

Autocompletes

You can use autocompletes for directives in HTML and angular.js's variables and function in JavaScript. See settings for more details.

If you type some prefix and press Tab or Enter, you can use autocompletes in below.

HTML

ng-app
ng-bind
ng-bind-html
ng-bind-template
ng-blur
ng-change
ng-checked
ng-class
ng-class-even
ng-class-odd
ng-click
ng-cloak
ng-controller
ng-copy
ng-csp
ng-cut
ng-dblclick
ng-disabled
ng-focus
ng-form
ng-hide
ng-href
ng-if
ng-include
ng-init
ng-jq
ng-keydown
ng-keypress
ng-keyup
ng-list
ng-model
ng-model-options
ng-mousedown
ng-mouseenter
ng-mouseleave
ng-mousemove
ng-mouseover
ng-mouseup
ng-non-bindable
ng-open
ng-pluralize
ng-show
ng-transclude
ng-view
ng-messages
ng-message
ng-messages-include
ng-swipe-left
ng-swipe-righ
ng-dirty
ng-false-value
ng-invalid
ng-maxlength
ng-minlength
ng-message-exp
ng-options
ng-paste
ng-pattern
ng-pristine
ng-readonly
ng-required
ng-repeat
ng-repeat-start
ng-repeat-end
ng-selected
ng-src
ng-srcset
ng-style
ng-submit
ng-switch
ng-switch-when
ng-switch-default
ng-trim
ng-true-value
ng-valid
ng-value

JavaScript

angular
bind
bootstrap
copy
element
equals
extend
forEach
fromJson
identity
injector
isArray
isDate
isDefined
isElement
isFunction
isNumber
isObject
isString
isUndefined
lowercase
module
noop
reloadWithDebugInfo
toJson
uppercase
$anchorScroll
$animate
$cacheFactory
$compile
$controller
$document
$exceptionHandler
$filter
$http
$httpBackend
$interpolate
$interval
$locale
$location
$log
$parse
$q
$rootElement
$rootScope
$sce
$sceDelegate
$templateCache
$templateRequest
$timeout
$window
$animateProvider
$compileProvider
$controllerProvider
$filterProvider
$httpProvider
$interpolateProvider
$locationProvider
$logProvider
$parseProvider
$rootScopeProvider
$sceDelegateProvider
$sceProvider
$injector
$provide
$ariaProvider
$aria
$cookieStore
$cookies
mock
$exceptionHandlerProvider
TzDate
dump
inject
$resource
$routeProvider
$route
$routeParams
$sanitize
$swipe
controller
$scope
service
factory
provider
ngResource
defer
config
when
otherwise
directive
run
filter

Snippets

You can use snippets in HTML and JavaScript. See snippets for more details.

If you type prefix and press tab, It will be replaced by snippet for it.

HTML

ngindex
<html>
<head>
  <script src="https://ajax.googleapis.com/ajax/libs/angularjs/$1/angular.js"></script>
</head>
<body ng-app>
 $2
</body>
</html>
ngsa
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/angularjs/$1/angular.js"></script>
ngst
<script type="text/ng-template" id="$1">
  $2
</script>
nginc
<ng-include src="$1" ${2: onload="$3"} ${4: autoscroll="$5"}></ng-include>
ngplural
<ng-pluralize count="$1" when="$2" ${3: offset="$4"}></ng-pluralize>
ngswitch
<ng-switch on="$1">$2</ng-switch>
ngtmpl
<script type="text/ng-template">$1</script>
ngview
<ng-view ${1: onload="$2"} ${3: $autoscroll="$4"}></ng-view>

JavaScript

ngm
angular.module('$1', [$2])$3
ngma
var $1 = angular.module('$2', [$3])$4
ngmc
var $1 = angular.module('$2', [$3], function($4) {
    $5
})$6
ngmfa
factory('$1', function($2) {
  $3
})$4
ngmfi
filter('$1', function($2) {
  return function (input, $3) {
    $4
  };
})$5
ngms
service('$1', function($2) {
  $3
})$4
ngro
$routeProvider.otherwise({redirectTo: '$1' });
ngrw
$routeProvider.when('$1', {templateUrl: '$2', controller: '$3'});
ngrwr
$routeProvider.when('$1', {templateUrl: '$2', controller: '$3', resolve: {$4} });
ngfor
angular.forEach($1, function(value, key) {
  $2
});
ngdl
.directive('$1', function($2) {
  $3
  return function(scope, element, attrs) {
    $4
  }
})$5
ngdlf
function (scope, element, attrs) {
  $1
}
ngdc
.directive('$1', function factory($2) {
  var directiveDefinitionObject = {
    $3
    compile: function compile(tElement, tAttrs, transclude) {
      $4
      return function (scope, element, attrs) {
        $5
      }
    }
  };
  return directiveDefinitionObject;
})$6
ngdcf
function compile(tElement, tAttrs, transclude) {
  $1
  return function (scope, element, attrs) {
    $2
  }
}$3
ngb
$scope.$broadcast('$1', $2);
nge
$scope.$emit('', );
ngf
$scope.$1 = function($2) {
  $3
};
ngcp
$1Ctrl.prototype.$2 = function $2($3) {
  $4
};
ngon
$scope.$on('$1', function(event, $2) {
  $3
});
ngv
$scope.$1 = $2;
ngw
$scope.$watch('$1', function(newValue, oldValue) {
  $2
});

ngto

$timeout(function() {
  $2
}, $1)
ngc
var $1 = function($scope, $2) {
  $3
}
ngc$
$1Ctrl.$inject = [$scope, '$2'];
function $1Ctrl($scope, $2) {
  $4
}
angular.module($3).controller('$1Ctrl', $1Ctrl);
ngdoc
/**
 * @ngdoc ${1:function}
 * @name $2
 * @description
 * $3
 *
 */
nghttp
$http({method: '${1:GET}', url: '$2'})
.success(function(data, status, headers, config) {
  $3
})
.error(function(data, status, headers, config) {
  $4
});
ngcopy
angular.copy(${1:source} ${2:, ${3:destination}})
ngel
angular.element(${1:element});
ngeq
angular.equals(${1:object1}, ${2:object2});
ngext
angular.extend(${1:destinationObject}, ${2:sourceObject})
ngisa
angular.isArray(${1:value})
ngisd
angular.isDefined(${1:value})
ngisf
angular.isFunction(${1:value})
ngisn
angular.isNumber(${1:value})
ngiso
angular.isObject(${1:value})
ngiss
angular.isString(${1:value})
nglo
angular.lowercase(${1:string});
ngup
angular.uppercase(${1:string});

FAQ

Can't I use autocompletion with tab when I installed emmet plugin

See emmet's document

In your keymap.cson, add the following code.

'atom-text-editor[data-grammar="text html angular"]:not([mini])':
  'tab': 'emmet:expand-abbreviation-with-tab'

angularjs-atom's People

Contributors

alepop avatar bruinebeer avatar btesser avatar fwielstra avatar lephuongbg avatar livelazily avatar madhuhc avatar nodejose avatar outsideris avatar seronal avatar solidspark avatar vlki avatar yusijs avatar zacanger avatar

Stargazers

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

Watchers

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

angularjs-atom's Issues

It's Alive message hides tabs

The It's ALIVE! message covers tabs and stays displayed the entire time the package is enabled. While the message is cute, it completely negates any benefits of using this plugin.

Blocking 4 of my 7 open tabs

image

Tested In

I've verified this bug on both Windows 7 & Windows 8. I'm using Atom 0.121.0 with package version 0.0.4

Proposed Solutions

  • Make the message temporary. Maybe display it for only 15 seconds.
  • Remove the message all together. As a developer, I know which packages I've enabled or not.

Workaround

  • Enable developer tools
  • Remove the message from the DOM

Can't indent with tab key

When I have this package installed, I cannot use the tab key on a new line to indent. When I disable the package I can indent again. When I run the Key Binding Resolver (command+.) I see the following:
emmet

This started with the 0.3.2 release

ng-options not colored

ng-options is not colored like other angular attributes (like ng-model) on select inputs.

Deprecated selector in `angularjs/styles/angularjs.less`

In angularjs/styles/angularjs.less:

Starting from Atom v1.13.0, the contents of atom-text-editor elements are no longer encapsulated within a shadow DOM boundary. This means you should stop using :host and ::shadow pseudo-selectors, and prepend all your syntax selectors with syntax--. To prevent breakage with existing style sheets, Atom will automatically upgrade the following selectors:

  • atom-text-editor .entity.name.tag.block.any.html.angular, atom-text-editor::shadow .entity.name.tag.block.any.html.angular, atom-text-editor .entity.other.attribute-name.html.angular, atom-text-editor::shadow .entity.other.attribute-name.html.angular => atom-text-editor .entity.name.tag.block.any.html.angular, atom-text-editor.editor .syntax--entity.syntax--name.syntax--tag.syntax--block.syntax--any.syntax--html.syntax--angular, atom-text-editor .entity.other.attribute-name.html.angular, atom-text-editor.editor .syntax--entity.syntax--other.syntax--attribute-name.syntax--html.syntax--angular

  • atom-text-editor .punctuation.definition.block.begin.angular, atom-text-editor::shadow .punctuation.definition.block.begin.angular, atom-text-editor .punctuation.definition.block.end.angular, atom-text-editor::shadow .punctuation.definition.block.end.angular => atom-text-editor .punctuation.definition.block.begin.angular, atom-text-editor.editor .syntax--punctuation.syntax--definition.syntax--block.syntax--begin.syntax--angular, atom-text-editor .punctuation.definition.block.end.angular, atom-text-editor.editor .syntax--punctuation.syntax--definition.syntax--block.syntax--end.syntax--angular

Automatic translation of selectors will be removed in a few release cycles to minimize startup time. Please, make sure to upgrade the above selectors as soon as possible.

Specs don't pass

Just like the title says, version 0.0.5 doesn't pass the specs test suite.

release v0.0.4

How about do you think v0.0.4?
There are pretty changes after merging atom-angularjs.
So I didn't release new version. I'm not sure we have consensus about snippet, auto-completes, etc...
but we need to release new version if there isn't any suggestion about that.

Syntax Highlighting would be amazing.

In fact, if this package did only one thing, that would probably be the most useful. I don't care about highlighting ng-if, etc. What I want is the angular expressions to be highlighted as if they were javascript. So recognizing ng-if and then highlighting the expression inside the quotes according to JS syntax. Same with anything inside double curly brackets {{highlighted in here}}

HTML snippets not working

For Atom 0.120.0 and AnularJS-Atom 0.0.4, javascript snippets are working as expected, but all HTML snippets aren't. Nothing happens when HTML prefix + tab is entered.

Regarding div element generating a class attribute

Question: When generating Div element it automatically generates a class attribute. Is this angular ui package doing this? If so is there a way I can modified so it does not generate a class attribute?

Started using angular ui package.

Notice when I started using it. When generating Div element it automatically generates a class attribute.
I looked through the code but couldn't figure out for sure.

Goal: - so my overall goal is to only have a class when I use the emmet convention of div.classname to generate a class.

Just a quick other note:
I use the emmet package as well - ( I remapped the tab key in that package to ="unset!" and use the ctrl-e to work with emmet)

thanks

Package.loadSettings is deprecated.

Store package settings files in the settings/ directory instead of scoped-properties/

Package.loadSettings (/usr/local/share/atom/resources/app.asar/src/package.js:547:9)
<unknown> (/usr/local/share/atom/resources/app.asar/src/package.js:168:43)

Atom Version: 0.193.0-356bb7c

Package.getStylesheetsPath is deprecated.

Store package style sheets in the styles/ directory instead of stylesheets/ in the angularjs package

Package.getStylesheetsPath (/Users/rodrigocosta/Downloads/Atom.app/Contents/Resources/app.asar/src/package.js:464:9)
Package.getStylesheetPaths (/Users/rodrigocosta/Downloads/Atom.app/Contents/Resources/app.asar/src/package.js:475:32)
Package.loadStylesheets (/Users/rodrigocosta/Downloads/Atom.app/Contents/Resources/app.asar/src/package.js:457:38)
<unknown> (/Users/rodrigocosta/Downloads/Atom.app/Contents/Resources/app.asar/src/package.js:187:19)

Syntax highlighting is not consistent

Why does the new syntax hghlighting for Angular JS (especially as attributes) work in some places but not others?

See below:

3422375190fbd762d327577c6eca67a1a657b990_690x204

The top-most ng-click scopes as:
45a800e2687a6d1a2801a41162c2865ab6fc90c8

But the other one scopes as:
c68fabcc104829140e76cb4ab54cca40a9d5253f

There's no reason why one works and one doesn't...

Provide angular semantic highlighting.

Currently atom does not properly highlight "{{scope.myvar}}", it highlights everything the string color.
And inside ng attributes

  <span ng-show="transaction.paymentAmount !=== undefined">C</span>

WebStorm handles angular highlighting nicely.

Package.getStylesheetsPath is deprecated.

Store package style sheets in the styles/ directory instead of stylesheets/ in the angularjs package

Package.getStylesheetsPath (/Applications/Atom.app/Contents/Resources/app/src/package.js:448:9)
Package.getStylesheetPaths (/Applications/Atom.app/Contents/Resources/app/src/package.js:459:32)

Deprecated Atom APIs will be removed June 1st

Atom will no longer load this package after June 1st without changes. There is one deprecation on the latest version (0.3.0) of this package:

  1. Use Workspace::onDidAddTextEditor instead

Visit https://gist.github.com/benogle/6d09e295c84b717ef9b4 and search for your package name to see up-to-date deprecations.

If this package has been replaced by another package or functionality in core, please reply with this information.

See atom/atom#6867 for more info. Thanks!

Uncaught TypeError: this.textEditor.displayBuffer.getMaxScrollTop is not a function

Atom Version: 1.1.0
System: Microsoft Windows 10 Pro
Thrown From: angularjs package, v0.3.3

Stack Trace

Uncaught TypeError: this.textEditor.displayBuffer.getMaxScrollTop is not a function

At /C:/Users/Guillem/.atom/packages/minimap/lib/minimap.coffee:169

TypeError: this.textEditor.displayBuffer.getMaxScrollTop is not a function
  at Minimap.module.exports.Minimap.getTextEditorMaxScrollTop (C:\Users\Guillem\.atom\packages\minimap\lib\minimap.coffee:200:46)
  at Minimap.module.exports.Minimap.getTextEditorScrollRatio (C:\Users\Guillem\.atom\packages\minimap\lib\minimap.coffee:216:36)
  at Minimap.module.exports.Minimap.getCapedTextEditorScrollRatio (C:\Users\Guillem\.atom\packages\minimap\lib\minimap.coffee:223:50)
  at Minimap.module.exports.Minimap.getScrollTop (C:\Users\Guillem\.atom\packages\minimap\lib\minimap.coffee:334:17)
  at atom-text-editor-minimap.MinimapElement.update (C:\Users\Guillem\.atom\packages\minimap\lib\minimap-element.coffee:343:73)
  at C:\Users\Guillem\.atom\packages\minimap\lib\minimap-element.coffee:323:8

Commands

Config

{
  "core": {
    "disabledPackages": [
      "angularjs-helper",
      "language-javascript-jsx",
      "es6-javascript",
      "linter-pep8",
      "autocomplete-clang",
      "linter-jscs"
    ]
  }
}

Installed Packages

# User
angularjs, v0.3.3
highlight-selected, v0.10.1
language-babel, v0.15.7
language-batch, v0.3.3
language-cmake, v0.1.4
language-javascript-better, v1.7.1
language-protobuf, v0.5.0
linter, v1.8.1
linter-csslint, v1.1.0
linter-tidy, v1.0.1
minimap, v4.13.4
minimap-git-diff, v4.1.8
minimap-linter, v1.0.0
minimap-selection, v4.3.1
open-recent, v2.3.0
react, v0.12.10
sync-settings, v0.6.0

# Dev
No dev packages

Package.loadSettings is deprecated.

Hi,
I'm getting this warning.
I'm using the version 1.0, I don't know why it doesn't allow me to install the v.2.0.
I'm using the last version of Atom ( v.0.197.0 ).

Store package settings files in the settings/ directory instead of scoped-properties/

Package.loadSettings (C:\Users\<user>\AppData\Local\atom\app-0.197.0\resources\app.asar\src\package.js:586:9)
<unknown> (C:\Users\<user>\AppData\Local\atom\app-0.197.0\resources\app.asar\src\package.js:188:43)
Package.measure (C:\Users\<user>\AppData\Local\atom\app-0.197.0\resources\app.asar\src\package.js:167:15)
Package.load (C:\Users\<user>\AppData\Local\atom\app-0.197.0\resources\app.asar\src\package.js:181:12)

Package.loadSettings is deprecated.

Store package settings files in the settings/ directory instead of scoped-properties/

Package.loadSettings (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:582:9)
<unknown> (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:184:43)
Package.measure (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:163:15)
Package.load (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:177:12)
PackageManager.loadPackage (/Applications/Atom.app/Contents/Resources/app.asar/src/package-manager.js:355:14)
PackageManager.loadPackages (/Applications/Atom.app/Contents/Resources/app.asar/src/package-manager.js:325:14)

Uncaught TypeError: Cannot read property 'focusScope' of undefined

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 0.201.0
System: Microsoft Windows 7 Professional
Thrown From: angularjs package, v0.3.0

Stack Trace

Uncaught TypeError: Cannot read property 'focusScope' of undefined

At /c:/Users/pk/.atom/packages/scope-inspector/lib/scope-path-view.coffee:89

TypeError: Cannot read property 'focusScope' of undefined
  at ScopePathView.module.exports.ScopePathView.onLeaveButton (C:\Users\pranav.OFS1\.atom\packages\scope-inspector\lib\scope-path-view.coffee:47:29)
  at HTMLDivElement.handler (D:\tools\atom\app-0.201.0\resources\app.asar\src\space-pen-extensions.js:112:34)
  at HTMLDivElement.jQuery.event.dispatch (D:\tools\atom\app-0.201.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4681:9)
  at HTMLDivElement.elemData.handle (D:\tools\atom\app-0.201.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4359:46)

Commands

Config

{
  "core": {
    "themes": [
      "atom-dark-ui",
      "one-dark-syntax"
    ],
    "disabledPackages": [
      "vim-mode"
    ]
  }
}

Installed Packages

# User
angularjs, v0.3.0
block-travel, v1.0.2
column-select, v0.2.0
hex, v0.5.0
highlight-selected, v0.9.1
js-refactor, v0.3.0
linter, v0.12.6
linter-csslint, v0.0.13
linter-gjslint, v0.0.5
linter-jshint, v0.1.5
linter-jsonlint, v0.1.4
linter-less, v0.4.0
linter-scss-lint, v1.0.4
neon-selection, v0.3.2
open-recent, v2.2.2
project-colorize, v0.2.0
quick-jump, v0.0.4
refactor, v0.4.1
regex-railroad-diagram, v0.7.1
scope-inspector, v0.2.1
word-jumper, v0.2.0
zentabs, v0.8.4

# Dev
No dev packages

Package.loadSettings is deprecated.

Store package settings files in the settings/ directory instead of scoped-properties/

Package.loadSettings (/usr/local/share/atom/resources/app/src/package.js:565:9)
<unknown> (/usr/local/share/atom/resources/app/src/package.js:187:43)

Atom: 0.189.0-edd46e4

Package.getStylesheetsPath is deprecated.

Store package style sheets in the styles/ directory instead of stylesheets/ in the angularjs package

Package.getStylesheetsPath (/Users/michaelenfinger/Desktop/Atom.app/Contents/Resources/app.asar/src/package.js:464:9)
Package.getStylesheetPaths (/Users/michaelenfinger/Desktop/Atom.app/Contents/Resources/app.asar/src/package.js:475:32)
Package.loadStylesheets (/Users/michaelenfinger/Desktop/Atom.app/Contents/Resources/app.asar/src/package.js:457:38)
<unknown> (/Users/michaelenfinger/Desktop/Atom.app/Contents/Resources/app.asar/src/package.js:187:19)

Adding "" simbols on autocomplete?

When I used Sublime the Angular plugin autocompleted with the ="" simbols, so you would type <div ngi and picking the "ng-if" suggestion would insert <div ng-if="" and move the cursor between the ""

Is there a chance to add this to the plugin?

Package.getStylesheetsPath is deprecated.

Store package style sheets in the styles/ directory instead of stylesheets/ in the angularjs package

Package.getStylesheetsPath (/usr/local/share/atom/resources/app/src/package.js:448:9)
Package.getStylesheetPaths (/usr/local/share/atom/resources/app/src/package.js:459:32)

Atom: 0.189.0-edd46e4

Package.loadSettings is deprecated.

Store package settings files in the settings/ directory instead of scoped-properties/

Package.loadSettings (/Users/michaelenfinger/Desktop/Atom.app/Contents/Resources/app.asar/src/package.js:586:9)
<unknown> (/Users/michaelenfinger/Desktop/Atom.app/Contents/Resources/app.asar/src/package.js:188:43)
Package.measure (/Users/michaelenfinger/Desktop/Atom.app/Contents/Resources/app.asar/src/package.js:167:15)
Package.load (/Users/michaelenfinger/Desktop/Atom.app/Contents/Resources/app.asar/src/package.js:181:12)

Package.loadSettings is deprecated.

Store package settings files in the settings/ directory instead of scoped-properties/

Package.loadSettings (/opt/atom/resources/app.asar/src/package.js:552:9)
<unknown> (/opt/atom/resources/app.asar/src/package.js:168:43)
Package.measure (/opt/atom/resources/app.asar/src/package.js:147:15)
Package.load (/opt/atom/resources/app.asar/src/package.js:161:12)

ng-src parses protocol relative links as comments

Found on Atom 1.0.4 with AngularJS-Atom v0.3.0 on Mac OSX 10.10.3. Replicated on another machine with same specs and install.

When set to HTML (Angular) and using protocol relative links with ng-src (e.g. //path/to/src instead of http://path/to/src), the path is parsed incorrectly and interpreted as a comment, which flubs the rest of the file and prevents tab autocompletes.

image

Any ideas on this?

Initial version

Hey @subhaze I'm not sure if you've checked out atom.io at all or have any interest in it, but if you do let me know and I'll send you an invite so we can claim the angularjs package for it!

Package.getStylesheetsPath is deprecated.

Store package style sheets in the styles/ directory instead of stylesheets/ in the angularjs package

Package.getStylesheetsPath (/opt/atom/resources/app.asar/src/package.js:430:9)
Package.getStylesheetPaths (/opt/atom/resources/app.asar/src/package.js:441:32)
Package.loadStylesheets (/opt/atom/resources/app.asar/src/package.js:423:38)
<unknown> (/opt/atom/resources/app.asar/src/package.js:167:19)

Inconsistent syntax highlighting

atom v1.8.0 (package: angualrjs v0.3.4)
I noticed inconsistencies in angular's {{}} markup highlighting. There are three different cases in this HTML and they are highlighted differently
screen shot 2016-06-21 at 00 52 07

Package.getStylesheetsPath is deprecated.

Store package style sheets in the styles/ directory instead of stylesheets/ in the angularjs package

Package.getStylesheetsPath (/usr/local/share/atom/resources/app.asar/src/package.js:430:9)
Package.getStylesheetPaths (/usr/local/share/atom/resources/app.asar/src/package.js:441:32)

Atom Version: 0.193.0-356bb7c

Package.getStylesheetsPath is deprecated.

Store package style sheets in the styles/ directory instead of stylesheets/ in the angularjs package

Package.getStylesheetsPath (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:460:9)
Package.getStylesheetPaths (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:471:32)
Package.loadStylesheets (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:453:38)
<unknown> (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:183:19)
Package.measure (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:163:15)
Package.load (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:177:12)

Package.getStylesheetsPath is deprecated.

Store package style sheets in the styles/ directory instead of stylesheets/ in the angularjs package

Package.getStylesheetsPath (C:\Users\farid\AppData\Local\atom\app-0.198.0\resources\app.asar\src\package.js:464:9)
Package.getStylesheetPaths (C:\Users\farid\AppData\Local\atom\app-0.198.0\resources\app.asar\src\package.js:475:32)
Package.loadStylesheets (C:\Users\farid\AppData\Local\atom\app-0.198.0\resources\app.asar\src\package.js:457:38)
<unknown> (C:\Users\farid\AppData\Local\atom\app-0.198.0\resources\app.asar\src\package.js:187:19)

don't highlight JavaScript outside html tag

When you use partials normally don't have a complete html structure, sometimes the JavaScript is not included in other html tags. I have an example here.

html-angular
script it's NOT highlight correctly.

html-angular-2
If it is inside the fieldset tag. the highlight works correctly

With the default html highlighter of Atom works correctly.

Overrides emmet

Hi, since I've installed this plugin, emmet tab autocompletion no longer works on HTML (Angular) files. It still works with ctrl+e.

Package.getStylesheetsPath is deprecated.

Hi,
I'm getting this warning.
I'm using the version 1.0, I don't know why it doesn't allow me to install the v.2.0.
I'm using the last version of Atom ( v.0.197.0 ).

Store package style sheets in the styles/ directory instead of stylesheets/ in the angularjs package

Package.getStylesheetsPath (C:\Users\jmadrigal\AppData\Local\atom\app-0.197.0\resources\app.asar\src\package.js:464:9)
Package.getStylesheetPaths (C:\Users\jmadrigal\AppData\Local\atom\app-0.197.0\resources\app.asar\src\package.js:475:32)
Package.loadStylesheets (C:\Users\jmadrigal\AppData\Local\atom\app-0.197.0\resources\app.asar\src\package.js:457:38)
<unknown> (C:\Users\jmadrigal\AppData\Local\atom\app-0.197.0\resources\app.asar\src\package.js:187:19)

Autocomplete without keypress

Hi,

Great plugin! I love it so far, just had a question about it though. Is there any way to have angularjs-atom autocomplete without having to press ctrl+space? I was hoping for behavior similar to an IDE where it is automatic. If not, are there plans to implement this?

Thanks

Grammar detection is too loose

Howdy!
First off, many thanks for the plugin, I find it really helpful when I'm building Angular apps. ๐Ÿ‘

Secondly, alas, this week I'm working on a Polymer project, which is effectively nothing but HTML files. AngularJS-Atom's auto-detection is detecting all of my files as Angular, which is problematic for particularly style modules (wherein the entire file is just one style tag and some HTML imports), insomuch that they lose syntax highlighting altogether.

Add ="" to directive autocomplete

Not sure why you settled with just ng-click, instead you should have the autocomplete do ng-click="" and place the cursor between the quotes.

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.